Skip to content

Commit adbbc5a

Browse files
fix(event-handler): restore removed comment in OpenAPIExtensions class
Hi @svozza, Thank you for catching that! The comment was accidentally removed during the refactoring. I have restored it now. Also added the Acknowledgment section to the PR description. Sorry for the oversight! Signed-off-by: hirenkumar-n-dholariya <hirenkumarnd@gmail.com>
1 parent 949d565 commit adbbc5a

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

  • aws_lambda_powertools/event_handler/openapi

aws_lambda_powertools/event_handler/openapi/models.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@ class OpenAPIExtensions(BaseModel):
2626
"""
2727

2828
openapi_extensions: dict[str, Any] | None = None
29-
29+
30+
# If the 'openapi_extensions' field is present in the 'values' dictionary,
31+
# And if the extension starts with x- (must respect the RFC)
32+
# update the 'values' dictionary with the contents of 'openapi_extensions',
33+
# and then remove the 'openapi_extensions' field from the 'values' dictionary
3034
model_config = {"extra": "allow"}
3135

3236
@model_validator(mode="before")

0 commit comments

Comments
 (0)