from typing import Annotated from aws_lambda_powertools.event_handler.api_gateway import Router from aws_lambda_powertools.event_handler.openapi.params import Body, Path router = Router() @router.post('/reset') def reset( new_password: Annotated[str, Body(min_length=6, embed=True)], code: Annotated[str, Path], ): return {}