Skip to content

Commit 2d213ff

Browse files
committed
the end of the section, a Parameter Object MUST contain either a 'schema' property or a 'content' property (but not both).
1 parent 7308f07 commit 2d213ff

File tree

1 file changed

+10
-2
lines changed
  • openapi_spec_validator/resources/schemas/v3.0.0

1 file changed

+10
-2
lines changed

openapi_spec_validator/resources/schemas/v3.0.0/schema.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,15 @@
433433
"content": {
434434
"$ref": "#/definitions/mediaTypes"
435435
}
436-
}
436+
},
437+
"oneOf": [
438+
{
439+
"required": [ "schema" ]
440+
},
441+
{
442+
"required": [ "content" ]
443+
}
444+
]
437445
},
438446
"requestBody": {
439447
"type": "object",
@@ -1250,4 +1258,4 @@
12501258
]
12511259
}
12521260
}
1253-
}
1261+
}

0 commit comments

Comments
 (0)