From 280eb82731f7593d11438e83803f342caf7fbebf Mon Sep 17 00:00:00 2001 From: Leandro Damascena Date: Mon, 20 Oct 2025 18:20:26 +0100 Subject: [PATCH] Fix bedrockagent examples key --- aws_lambda_powertools/event_handler/bedrock_agent.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/aws_lambda_powertools/event_handler/bedrock_agent.py b/aws_lambda_powertools/event_handler/bedrock_agent.py index 008aeb0ccdd..7a9e0cde972 100644 --- a/aws_lambda_powertools/event_handler/bedrock_agent.py +++ b/aws_lambda_powertools/event_handler/bedrock_agent.py @@ -403,11 +403,6 @@ def inner(yaml_dict): if isinstance(item, dict) and item.get("type") == "null": anyOf.pop(i) yaml_dict["nullable"] = True - if "examples" in yaml_dict: - examples = yaml_dict["examples"] - del yaml_dict["examples"] - if isinstance(examples, list) and len(examples): - yaml_dict["example"] = examples[0] for value in yaml_dict.values(): inner(value) elif isinstance(yaml_dict, list):