Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions aws_lambda_powertools/event_handler/api_gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ def _build_middleware_stack(self, router_middlewares: list[Callable[..., Any]],
to force the Python call stack created by the handler call-chain to naturally un-wind.

This becomes a simple concept for developers to understand and reason with - no additional
gymanstics other than plain old try ... except.
gymnastics other than plain old try ... except.

Notes
-----
Expand Down Expand Up @@ -1650,7 +1650,7 @@ def _registered_api_adapter(


class ApiGatewayResolver(BaseRouter):
"""API Gateway, VPC Laticce, Bedrock and ALB proxy resolver
"""API Gateway, VPC Lattice, Bedrock and ALB proxy resolver

Examples
--------
Expand Down Expand Up @@ -2886,7 +2886,7 @@ def _get_fields_from_routes(routes: Sequence[Route]) -> list[ModelField]:
for route in routes:
if route.body_field:
if not isinstance(route.body_field, ModelField):
raise AssertionError("A request body myst be a Pydantic Field")
raise AssertionError("A request body must be a Pydantic Field")
body_fields_from_routes.append(route.body_field)

params = get_flat_params(route.dependant)
Expand Down