schema fixes for the "parameter" and "header" objects
name is required (for parameter)
the map under content must contain only one entry
as per
MODIFY
schemas/v3.1/schema.json
schemas/v3.1/schema.json
"$dynamicRef": "#meta"
},
"content": {
- "$ref": "#/$defs/content"
+ "$ref": "#/$defs/content",
+ "minProperties": 1,
+ "maxProperties": 1
}
},
"required": [
+ "name",
"in"
],
"oneOf": [
"$dynamicRef": "#meta"
},
"content": {
- "$ref": "#/$defs/content"
+ "$ref": "#/$defs/content",
+ "minProperties": 1,
+ "maxProperties": 1
}
},
"oneOf": [

MODIFY
schemas/v3.1/schema.yaml
schemas/v3.1/schema.yaml
@@ -307,7 +307,10 @@ $defs:
$dynamicRef: '#meta'
content:
$ref: '#/$defs/content'
+ minProperties: 1
+ maxProperties: 1
required:
+ - name
- in
oneOf:
- required:
@@ -645,6 +648,8 @@ $defs:
$dynamicRef: '#meta'
content:
$ref: '#/$defs/content'
+ minProperties: 1
+ maxProperties: 1
oneOf:
- required:
- schema

schema fixes for the "parameter" and "header" objects (#2746)

- name is required (for parameter)
- the map under content must contain only one entry

as per https://spec.openapis.org/oas/v3.1.0#fixed-fields-9