forked from go-openapi/spec3
/
components.go
17 lines (15 loc) · 932 Bytes
/
components.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package spec3
// Components 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.
type Components struct {
VendorExtensible
Schemas OrderedSchemas `json:"schemas,omitempty"`
Responses OrderedResponses `json:"responses,omitempty"`
Parameters OrderedParameters `json:"parameters,omitempty"`
Examples OrderedExamples `json:"examples,omitempty"`
RequestBodies OrderedRequestBodies `json:"requestBodies,omitempty"`
Headers OrderedHeaders `json:"headers,omitempty"`
SecuritySchemes OrderedSecuritySchemes `json:"securitySchemes,omitempty"`
Links OrderedLinks `json:"links,omitempty"`
Callbacks OrderedCallbacks `json:"callbacks,omitempty"`
}