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
feat(event_handler): mark API operation as deprecated for OpenAPI documentation (#5732)
* Add deprecated parameter with default to BaseRouter.get
* Add parameter with default to BaseRouter.route
* Pass deprecated param from .get() into .route()
* Add param and pass along for post, put, delete, patch, head
* Add param and pass along for ApiGatewayRestResolver.route
* Ditto for Route.__init__, use when creating operation metadata
* Add param and pass along in ApiGatewayResolver.route
* Add param and pass along in Router.route, workaround for include_router
* Functional tests
* Formatting
* Refactor to use defaultdict
* Move deprecated operation tests into separate test case
* Simplify test case
* Put 'deprecated' param before 'middlewares'
* Remove workaround
* Add test case for deprecated POST operation
* Add 'deprecated' param to BedrockAgentResolver methods
* Small changes + trigger pipeline
---------
Co-authored-by: Leandro Damascena <[email protected]>
Copy file name to clipboardExpand all lines: docs/core/event_handler/_openapi_customization_operations.md
+1
Original file line number
Diff line number
Diff line change
@@ -13,3 +13,4 @@ Here's a breakdown of various customizable fields:
13
13
|`tags`|`List[str]`| Tags are a way to categorize and group endpoints within the API documentation. They can help organize the operations by resources or other heuristic. |
14
14
|`operation_id`|`str`| A unique identifier for the operation, which can be used for referencing this operation in documentation or code. This ID must be unique across all operations described in the API. |
15
15
|`include_in_schema`|`bool`| A boolean value that determines whether or not this operation should be included in the OpenAPI schema. Setting it to `False` can hide the endpoint from generated documentation and schema exports, which might be useful for private or experimental endpoints. |
16
+
|`deprecated`|`bool`| A boolean value that determines whether or not this operation should be marked as deprecated in the OpenAPI schema. |
0 commit comments