OS3Components
@tsed/openspec
Usage
typescript
import { OS3Components } from "@tsed/openspec";
See /packages/specs/openspec/src/types/openspec3/OS3Components.ts.
Overview
ts
interface OS3Components<Schema = OS3Schema> {
schemas?: OpenSpecHash<Schema>;
responses?: OpenSpecHash<OS3Response<Schema>>;
parameters?: OpenSpecHash<OS3Parameter<Schema>>;
examples?: OpenSpecHash<OS3Example>;
requestBodies?: OpenSpecHash<OS3RequestBody<Schema>>;
headers?: OpenSpecHash<OS3Header<Schema>>;
securitySchemes?: OpenSpecHash<OS3Security>;
links?: OpenSpecHash<OS3Link>;
callbacks?: OS3Callbacks;
}
schemas
ts
schemas?: OpenSpecHash<Schema>;
An object to hold reusable Schema Objects.
responses
ts
responses?: OpenSpecHash<OS3Response<Schema>>;
An object to hold reusable Response Objects.
parameters
ts
parameters?: OpenSpecHash<OS3Parameter<Schema>>;
An object to hold reusable Parameter Objects.
examples
ts
examples?: OpenSpecHash<OS3Example>;
An object to hold reusable Example Objects.
requestBodies
ts
requestBodies?: OpenSpecHash<OS3RequestBody<Schema>>;
An object to hold reusable Request Body Objects.
headers
ts
headers?: OpenSpecHash<OS3Header<Schema>>;
An object to hold reusable Header Objects.
securitySchemes
ts
securitySchemes?: OpenSpecHash<OS3Security>;
An object to hold reusable Security Scheme Objects.
links
ts
links?: OpenSpecHash<OS3Link>;
An object to hold reusable Link Objects.
callbacks
ts
callbacks?: OS3Callbacks;
An object to hold reusable Callback Objects.