-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Description
One of the paragraphs within the "Parameter Object" section of the current OpenAPI v3 specification contains this statement:
A parameter MUST contain either a schema property, or a content property, but not both.
The schema or content fields in the tables of fields in the "Parameter Object" section do not contain the REQUIRED keyword. That is okay, because these fields are not strictly required. But at the same time, the entries in these tables do not mention a combined requirement of one of those fields.
The statement mentioned at the beginning is easy to overlook. I think that the conditional requirement of any fields should also be mentioned in the table, because it is the first and often the only place where a person would normally look for the field's definition.