We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e97f6ee commit 3fceac7Copy full SHA for 3fceac7
aws_lambda_powertools/event_handler/openapi/models.py
@@ -22,11 +22,15 @@ class OpenapiExtensions(BaseModel):
22
23
@parser_openapi_extension()
24
def serialize(self):
25
+ # If the 'openapi_extensions' field is not None, return it
26
if self.openapi_extensions:
27
return self.openapi_extensions
28
29
else:
30
31
+ # If the 'openapi_extensions' field is present in the 'values' dictionary,
32
+ # update the 'values' dictionary with the contents of 'openapi_extensions',
33
+ # and then remove the 'openapi_extensions' field from the 'values' dictionary
34
@parser_openapi_extension(pre=False, allow_reuse=True)
35
def check_json(cls, values):
36
if values.get("openapi_extensions"):
0 commit comments