Documentation ¶
Index ¶
Constants ¶
View Source
const OpenApiSpecificationVersion = "3.1.0"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComponentsObject ¶
type ComponentsObject struct {
Schemas map[string]jsonschema.JSONSchema `json:"schemas,omitempty"`
}
type InfoObject ¶
type MediaTypeObject ¶
type MediaTypeObject struct {
Schema jsonschema.JSONSchema `json:"schema,omitempty"`
}
type OpenAPI ¶
type OpenAPI struct { OpenAPI string `json:"openapi"` Info InfoObject `json:"info"` Paths map[string]PathItemObject `json:"paths,omitempty"` Components *ComponentsObject `json:"components,omitempty"` }
OpenAPI spec object - https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md
type OperationObject ¶
type OperationObject struct { OperationID *string `json:"operationId,omitempty"` RequestBody *RequestBodyObject `json:"requestBody,omitempty"` Responses map[string]ResponseObject `json:"responses,omitempty"` }
type PathItemObject ¶
type PathItemObject struct { Post *OperationObject `json:"post,omitempty"` Get *OperationObject `json:"get,omitempty"` }
type RequestBodyObject ¶
type RequestBodyObject struct { Description string `json:"description"` Content map[string]MediaTypeObject `json:"content,omitempty"` Required *bool `json:"required,omitempty"` }
type ResponseObject ¶
type ResponseObject struct { Description string `json:"description"` Content map[string]MediaTypeObject `json:"content,omitempty"` }
Click to show internal directories.
Click to hide internal directories.