Skip to content

Commit 7ebd820

Browse files
fix(event_handler): Preserve examples field in OpenAPI schema for BedrockAgentResolver (#7561)
Fix bedrockagent examples key
1 parent 7c4261e commit 7ebd820

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

aws_lambda_powertools/event_handler/bedrock_agent.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -403,11 +403,6 @@ def inner(yaml_dict):
403403
if isinstance(item, dict) and item.get("type") == "null":
404404
anyOf.pop(i)
405405
yaml_dict["nullable"] = True
406-
if "examples" in yaml_dict:
407-
examples = yaml_dict["examples"]
408-
del yaml_dict["examples"]
409-
if isinstance(examples, list) and len(examples):
410-
yaml_dict["example"] = examples[0]
411406
for value in yaml_dict.values():
412407
inner(value)
413408
elif isinstance(yaml_dict, list):

0 commit comments

Comments
 (0)