Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 19 additions & 3 deletions openapi_spec_validator/resources/schemas/v3.0.0/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,15 @@
"content": {
"$ref": "#/definitions/mediaTypes"
}
}
},
"oneOf": [
{
"required": [ "schema" ]
},
{
"required": [ "content" ]
}
]
},
"requestBody": {
"type": "object",
Expand Down Expand Up @@ -665,7 +673,15 @@
"content": {
"$ref": "#/definitions/mediaTypes"
}
}
},
"oneOf": [
{
"required": [ "schema" ]
},
{
"required": [ "content" ]
}
]
},
"tag": {
"type": "object",
Expand Down Expand Up @@ -1250,4 +1266,4 @@
]
}
}
}
}
9 changes: 9 additions & 0 deletions tests/integration/test_validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,16 @@ def test_same_parameters_names(self, validator):
{
'name': 'param1',
'in': 'query',
'schema': {
'type': 'integer',
},
},
{
'name': 'param1',
'in': 'path',
'schema': {
'type': 'integer',
},
},
],
},
Expand Down Expand Up @@ -120,6 +126,9 @@ def test_undocumented_parameter(self, validator):
{
'name': 'param1',
'in': 'path',
'schema': {
'type': 'integer',
},
},
],
},
Expand Down