Skip to content

Requirement of schema or content in parameter object is difficult to notice #1542

@pbasista

Description

@pbasista

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.

Metadata

Metadata

Assignees

Labels

clarificationrequests to clarify, but not change, part of the specparam serializationIssues related to parameter and/or header serialization

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions