Versions in this module Expand all Collapse all v1 v1.0.0 Oct 21, 2023 Changes in this version + type Header struct + func (header *Header) UnmarshalJSON(data []byte) error + func (header Header) MarshalJSON() ([]byte, error) + type Operation struct + Consumes []string + Deprecated bool + Description string + Extensions map[string]interface{} + ExternalDocs *openapi3.ExternalDocs + OperationID string + Parameters Parameters + Produces []string + Responses map[string]*Response + Schemes []string + Security *SecurityRequirements + Summary string + Tags []string + func (operation *Operation) UnmarshalJSON(data []byte) error + func (operation Operation) MarshalJSON() ([]byte, error) + type Parameter struct + AllowEmptyValue bool + CollectionFormat string + Default interface{} + Description string + Enum []interface{} + ExclusiveMax bool + ExclusiveMin bool + Extensions map[string]interface{} + Format string + In string + Items *openapi3.SchemaRef + MaxItems *uint64 + MaxLength *uint64 + Maximum *float64 + MinItems uint64 + MinLength uint64 + Minimum *float64 + MultipleOf *float64 + Name string + Pattern string + Ref string + Required bool + Schema *openapi3.SchemaRef + Type string + UniqueItems bool + func (parameter *Parameter) UnmarshalJSON(data []byte) error + func (parameter Parameter) MarshalJSON() ([]byte, error) + type Parameters []*Parameter + func (ps Parameters) Len() int + func (ps Parameters) Less(i, j int) bool + func (ps Parameters) Swap(i, j int) + type PathItem struct + Delete *Operation + Extensions map[string]interface{} + Get *Operation + Head *Operation + Options *Operation + Parameters Parameters + Patch *Operation + Post *Operation + Put *Operation + Ref string + func (pathItem *PathItem) GetOperation(method string) *Operation + func (pathItem *PathItem) Operations() map[string]*Operation + func (pathItem *PathItem) SetOperation(method string, operation *Operation) + func (pathItem *PathItem) UnmarshalJSON(data []byte) error + func (pathItem PathItem) MarshalJSON() ([]byte, error) + type Response struct + Description string + Examples map[string]interface{} + Extensions map[string]interface{} + Headers map[string]*Header + Ref string + Schema *openapi3.SchemaRef + func (response *Response) UnmarshalJSON(data []byte) error + func (response Response) MarshalJSON() ([]byte, error) + type SecurityRequirements []map[string][]string + type SecurityScheme struct + AuthorizationURL string + Description string + Extensions map[string]interface{} + Flow string + In string + Name string + Ref string + Scopes map[string]string + Tags openapi3.Tags + TokenURL string + Type string + func (securityScheme *SecurityScheme) UnmarshalJSON(data []byte) error + func (securityScheme SecurityScheme) MarshalJSON() ([]byte, error) + type T struct + BasePath string + Consumes []string + Definitions map[string]*openapi3.SchemaRef + Extensions map[string]interface{} + ExternalDocs *openapi3.ExternalDocs + Host string + Info openapi3.Info + Parameters map[string]*Parameter + Paths map[string]*PathItem + Produces []string + Responses map[string]*Response + Schemes []string + Security SecurityRequirements + SecurityDefinitions map[string]*SecurityScheme + Swagger string + Tags openapi3.Tags + func (doc *T) AddOperation(path string, method string, operation *Operation) + func (doc *T) UnmarshalJSON(data []byte) error + func (doc T) MarshalJSON() ([]byte, error)