You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit introduces the ability to pass parameters directly to the @apioperation decorator, allowing developers to define path parameters within the decorator itself. This simplifies OpenAPI schema generation and improves developer experience by reducing boilerplate code.
Changes include:
- Added `parameters` option to ApiOperationOptions type
- Updated OperationMetadata to include parameters property
- Modified @apioperation decorator to accept and store parameter metadata
- Added tests to verify parameter handling
This change aligns with common usage patterns for OpenAPI specifications and provides a more intuitive way to define API operations with required parameters.
#closes#2364
0 commit comments