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
* fix(#2364): Add support for passing parameters to @apioperation
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
* fix(#2364): Allow adding params via ApiOperation tag
This commit fixes issue #2364 by enabling developers to specify parameters directly within the @apioperation decorator. This streamlines OpenAPI schema generation and improves developer experience with a more concise syntax for defining API operations that require specific input parameters.
---------
Co-authored-by: Michał Grzegorzewski <michal@ria-develop.pl>
0 commit comments