Holds a set of reusable objects for different aspects of the OAS. All objects defined within the components object will have no effect on the API unless they are explicitly referenced from properties outside the components object.

All the fixed fields declared above are objects that MUST use keys that match the regular expression: ^[a-zA-Z0-9\.\-_]+$.

Hierarchy (view full)

Properties

callbacks?: Record<string, ReferenceObject | CallbackObject>

An object to hold reusable Callback Objects.

examples?: Record<string, ExampleObject | ReferenceObject>

An object to hold reusable Example Objects.

headers?: Record<string, ReferenceObject | HeaderObject>

An object to hold reusable Header Objects.

An object to hold reusable Link Objects.

parameters?: Record<string, AnyParameterObject | ReferenceObject>

An object to hold reusable Parameter Objects.

pathItems?: Record<string, PathItemObject | ReferenceObject>

An object to hold reusable Path Item Object.

requestBodies?: Record<string, RequestBodyObject | ReferenceObject>

An object to hold reusable Request Body Objects.

responses?: Record<string, ReferenceObject | ResponseObject>

An object to hold reusable Response Objects.

schemas?: Record<string, JSONSchema7Definition>

An object to hold reusable Schema Objects.

securitySchemes?: Record<string, ReferenceObject | AnySecuritySchemeObject>

An object to hold reusable Security Scheme Objects.