Closed
Description
Expected Behaviour
This seems to be a typo of frozen_openapi_extensions
Current Behaviour
The behavior itself seems to have no issues.
Code snippet
def route(
self,
rule: str,
method: str | list[str] | tuple[str],
cors: bool | None = None,
compress: bool = False,
cache_control: str | None = None,
summary: str | None = None,
description: str | None = None,
responses: dict[int, OpenAPIResponse] | None = None,
response_description: str | None = _DEFAULT_OPENAPI_RESPONSE_DESCRIPTION,
tags: list[str] | None = None,
operation_id: str | None = None,
include_in_schema: bool = True,
security: list[dict[str, list[str]]] | None = None,
openapi_extensions: dict[str, Any] | None = None,
deprecated: bool = False,
middlewares: list[Callable[..., Any]] | None = None,
) -> Callable[[AnyCallableT], AnyCallableT]:
def register_route(func: AnyCallableT) -> AnyCallableT:
# All dict keys needs to be hashable. So we'll need to do some conversions:
methods = (method,) if isinstance(method, str) else tuple(method)
frozen_responses = _FrozenDict(responses) if responses else None
frozen_tags = frozenset(tags) if tags else None
frozen_security = _FrozenListDict(security) if security else None
fronzen_openapi_extensions = _FrozenDict(openapi_extensions) if openapi_extensions else None # <- HERE
route_key = (
rule,
methods,
cors,
compress,
cache_control,
summary,
description,
frozen_responses,
response_description,
frozen_tags,
operation_id,
include_in_schema,
frozen_security,
fronzen_openapi_extensions, # <- HERE
deprecated,
)
Possible Solution
No response
Steps to Reproduce
fixing the typo is unlikely to have any impact.
Powertools for AWS Lambda (Python) version
latest
AWS Lambda function runtime
3.9
Packaging format used
PyPi
Debugging logs
Metadata
Metadata
Assignees
Type
Projects
Status
Shipped