@@ -361,6 +361,8 @@ def __init__(
361
361
Whether or not to include this route in the OpenAPI schema
362
362
security: List[Dict[str, List[str]]], optional
363
363
The OpenAPI security for this route
364
+ openapi_extensions: Dict[str, Any], optional
365
+ Additional OpenAPI extensions as a dictionary.
364
366
middlewares: Optional[List[Callable[..., Response]]]
365
367
The list of route middlewares to be called in order.
366
368
"""
@@ -1591,6 +1593,8 @@ def get_openapi_schema(
1591
1593
A declaration of the security schemes available to be used in the specification.
1592
1594
security: List[Dict[str, List[str]]], optional
1593
1595
A declaration of which security mechanisms are applied globally across the API.
1596
+ openapi_extensions: Dict[str, Any], optional
1597
+ Additional OpenAPI extensions as a dictionary.
1594
1598
1595
1599
Returns
1596
1600
-------
@@ -1781,6 +1785,8 @@ def get_openapi_json_schema(
1781
1785
A declaration of the security schemes available to be used in the specification.
1782
1786
security: List[Dict[str, List[str]]], optional
1783
1787
A declaration of which security mechanisms are applied globally across the API.
1788
+ openapi_extensions: Dict[str, Any], optional
1789
+ Additional OpenAPI extensions as a dictionary.
1784
1790
1785
1791
Returns
1786
1792
-------
@@ -1874,6 +1880,8 @@ def enable_swagger(
1874
1880
The OAuth2 configuration for the Swagger UI.
1875
1881
persist_authorization: bool, optional
1876
1882
Whether to persist authorization data on browser close/refresh.
1883
+ openapi_extensions: Dict[str, Any], optional
1884
+ Additional OpenAPI extensions as a dictionary.
1877
1885
"""
1878
1886
from aws_lambda_powertools .event_handler .openapi .compat import model_json
1879
1887
from aws_lambda_powertools .event_handler .openapi .models import Server
0 commit comments