Skip to content

Latest commit

 

History

History
107 lines (59 loc) · 2.78 KB

openapi.OpenApiComponents.md

File metadata and controls

107 lines (59 loc) · 2.78 KB

api-typescript-generator / Modules / openapi / OpenApiComponents

Interface: OpenApiComponents

openapi.OpenApiComponents

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.

See

https://swagger.io/specification/#components-object

Table of contents

Properties

Properties

callbacks

• Optional callbacks: Record<string, Record<string, OpenApiPathItem>>

An object to hold reusable Callback Objects.


examples

• Optional examples: Record<string, OpenApiExample>

An object to hold reusable Example Objects.


headers

• Optional headers: Record<string, OpenApiHeader>

An object to hold reusable Header Objects.


links

• Optional links: Record<string, OpenApiLink>

An object to hold reusable Link Objects.


parameters

• Optional parameters: Record<string, OpenApiParameter>

An object to hold reusable Parameter Objects.


pathItems

• Optional pathItems: Record<string, OpenApiPathItem>

An object to hold reusable Path Item Objects.


requestBodies

• Optional requestBodies: Record<string, OpenApiRequestBody>

An object to hold reusable Request Body Objects.


responses

• Optional responses: Record<string, OpenApiResponse>

An object to hold reusable Response Objects.


schemas

• Optional schemas: Record<string, OpenApiSchema>

An object to hold reusable Schema Objects.


securitySchemes

• Optional securitySchemes: Record<string, OpenApiSecurityScheme>

An object to hold reusable Security Scheme Objects.