OpenAPI components

The section of an OpenAPI document that holds reusable definitions, such as schemas, parameters and responses, referenced from operations.

In more detail

Operations point to these shared definitions with a $ref instead of repeating them. Defining each message shape once stops the same shape drifting between endpoints.

Related terms

Taught in

References