3939 "name" : "X-Request-ID" ,
4040 "in" : "header" ,
4141 "required" : False ,
42+ "description" : "Request identifier for tracing" ,
4243 "schema" : {"type" : "string" , "format" : "uuid" }
4344 }
4445 ],
7677 "type" : "object" ,
7778 "properties" : {
7879 "items" : {"type" : "array" , "items" : {"$ref" : "#/components/schemas/OrderItem" }},
79- "customer_notes" : {"type" : "string" }
80+ "customer_notes" : {"type" : "string" , "description" : "Additional notes from the customer" }
8081 }
8182 },
8283 "OrderItem" : {
@@ -169,8 +170,8 @@ def test_extract_order_post_details():
169170
170171 # Check non-body parameter (simplified schema within properties)
171172 assert "X-Request-ID" in input_properties
172- # Check type only , required status is in the top-level list
173- assert input_properties ["X-Request-ID" ] == {"type" : "string" }
173+ # Check type and description , required status is in the top-level list
174+ assert input_properties ["X-Request-ID" ] == {"type" : "string" , "description" : "Request identifier for tracing" }
174175 # Check that it's NOT required in the top-level list
175176 assert "X-Request-ID" not in extracted ["inputs" ].get ("required" , [])
176177
@@ -193,7 +194,7 @@ def test_extract_order_post_details():
193194
194195 # Check the flattened 'customer_notes' property from the body
195196 assert "customer_notes" in input_properties
196- assert input_properties ["customer_notes" ] == {"type" : "string" }
197+ assert input_properties ["customer_notes" ] == {"type" : "string" , "description" : "Additional notes from the customer" }
197198
198199 # Check required properties from the body are in the top-level required list
199200 # 'items' is NOT listed in the requestBody schema's top-level required list in TEST_SPEC
0 commit comments