Versions in this module Expand all Collapse all v0 v0.98.1 Aug 27, 2022 Changes in this version + type Header struct + func (header *Header) MarshalJSON() ([]byte, error) + func (header *Header) UnmarshalJSON(data []byte) error + type Operation struct + Consumes []string + Deprecated bool + Description string + ExternalDocs *openapi3.ExternalDocs + OperationID string + Parameters Parameters + Produces []string + Responses map[string]*Response + Schemes []string + Security *SecurityRequirements + Summary string + Tags []string + func (operation *Operation) MarshalJSON() ([]byte, error) + func (operation *Operation) UnmarshalJSON(data []byte) error + type Parameter struct + AllowEmptyValue bool + CollectionFormat string + Default interface{} + Description string + Enum []interface{} + ExclusiveMax bool + ExclusiveMin bool + 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) MarshalJSON() ([]byte, error) + func (parameter *Parameter) UnmarshalJSON(data []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 + 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) MarshalJSON() ([]byte, error) + func (pathItem *PathItem) Operations() map[string]*Operation + func (pathItem *PathItem) SetOperation(method string, operation *Operation) + func (pathItem *PathItem) UnmarshalJSON(data []byte) error + type Response struct + Description string + Examples map[string]interface{} + Headers map[string]*Header + Ref string + Schema *openapi3.SchemaRef + func (response *Response) MarshalJSON() ([]byte, error) + func (response *Response) UnmarshalJSON(data []byte) error + type SecurityRequirements []map[string][]string + type SecurityScheme struct + AuthorizationURL string + Description string + Flow string + In string + Name string + Ref string + Scopes map[string]string + Tags openapi3.Tags + TokenURL string + Type string + func (securityScheme *SecurityScheme) MarshalJSON() ([]byte, error) + func (securityScheme *SecurityScheme) UnmarshalJSON(data []byte) error + type T struct + BasePath string + Consumes []string + Definitions map[string]*openapi3.SchemaRef + 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) MarshalJSON() ([]byte, error) + func (doc *T) UnmarshalJSON(data []byte) error