Versions in this module Expand all Collapse all v2 v2.6.5 Mar 21, 2024 v2.6.4 Mar 19, 2024 Changes in this version + const FormatBinary + const FormatByte + const FormatDate + const FormatDateTime + const FormatDouble + const FormatInt32 + const FormatInt64 + const FormatPassword + const ParameterInCookie + const ParameterInHeader + const ParameterInPath + const ParameterInQuery + const TypeArray + const TypeBoolean + const TypeFile + const TypeInteger + const TypeNumber + const TypeObject + const TypeString + type AddInput struct + Method string + Object interface{} + Path string + Prefix string + type Callback map[string]*Path + type CallbackRef struct + Ref string + Value *Callback + func (r CallbackRef) MarshalJSON() ([]byte, error) + type Callbacks map[string]*CallbackRef + type Components struct + Callbacks Callbacks + Examples Examples + Headers Headers + Links Links + Parameters ParametersMap + RequestBodies RequestBodies + Responses Responses + Schemas Schemas + SecuritySchemes SecuritySchemes + type Config struct + CommonRequest interface{} + CommonRequestDataField string + CommonResponse interface{} + CommonResponseDataField string + IgnorePkgPath bool + ReadContentTypes []string + WriteContentTypes []string + type Contact struct + Email string + Name string + URL string + type Content map[string]MediaType + type Discriminator struct + Mapping map[string]string + PropertyName string + type Encoding struct + AllowReserved bool + ContentType string + Explode *bool + Headers Headers + Style string + type Example struct + Description string + ExternalValue string + Summary string + Value interface{} + type ExampleRef struct + Ref string + Value *Example + func (r ExampleRef) MarshalJSON() ([]byte, error) + type Examples map[string]*ExampleRef + type ExternalDocs struct + Description string + URL string + func (ed *ExternalDocs) UnmarshalValue(value interface{}) error + type Header struct + type HeaderRef struct + Ref string + Value *Header + func (r HeaderRef) MarshalJSON() ([]byte, error) + type Headers map[string]HeaderRef + type Info struct + Contact *Contact + Description string + License *License + TermsOfService string + Title string + Version string + type License struct + Name string + URL string + type Link struct + Description string + OperationID string + OperationRef string + Parameters map[string]interface{} + RequestBody interface{} + Server *Server + type LinkRef struct + Ref string + Value *Link + func (r LinkRef) MarshalJSON() ([]byte, error) + type Links map[string]LinkRef + type MediaType struct + Encoding map[string]*Encoding + Example interface{} + Examples Examples + Schema *SchemaRef + type OAuthFlow struct + AuthorizationURL string + RefreshURL string + Scopes map[string]string + TokenURL string + type OAuthFlows struct + AuthorizationCode *OAuthFlow + ClientCredentials *OAuthFlow + Implicit *OAuthFlow + Password *OAuthFlow + type OpenApiV3 struct + Components Components + Config Config + ExternalDocs *ExternalDocs + Info Info + OpenAPI string + Paths Paths + Security *SecurityRequirements + Servers *Servers + Tags *Tags + func New() *OpenApiV3 + func (oai *OpenApiV3) Add(in AddInput) error + func (oai OpenApiV3) String() string + type Operation struct + Callbacks *Callbacks + Deprecated bool + Description string + ExternalDocs *ExternalDocs + OperationID string + Parameters Parameters + RequestBody *RequestBodyRef + Responses Responses + Security *SecurityRequirements + Servers *Servers + Summary string + Tags []string + XExtensions XExtensions + func (o Operation) MarshalJSON() ([]byte, error) + type Parameter struct + AllowEmptyValue bool + AllowReserved bool + Content *Content + Deprecated bool + Description string + Example interface{} + Examples *Examples + Explode *bool + In string + Name string + Required bool + Schema *SchemaRef + Style string + XExtensions XExtensions + func (p Parameter) MarshalJSON() ([]byte, error) + type ParameterRef struct + Ref string + Value *Parameter + func (r ParameterRef) MarshalJSON() ([]byte, error) + type Parameters []ParameterRef + type ParametersMap map[string]*ParameterRef + type Path struct + Connect *Operation + Delete *Operation + Description string + Get *Operation + Head *Operation + Options *Operation + Parameters Parameters + Patch *Operation + Post *Operation + Put *Operation + Ref string + Servers Servers + Summary string + Trace *Operation + XExtensions XExtensions + func (p Path) MarshalJSON() ([]byte, error) + type Paths map[string]Path + type RequestBodies map[string]*RequestBodyRef + type RequestBody struct + Content Content + Description string + Required bool + type RequestBodyRef struct + Ref string + Value *RequestBody + func (r RequestBodyRef) MarshalJSON() ([]byte, error) + type Response struct + Content Content + Description string + Headers Headers + Links Links + XExtensions XExtensions + func (r Response) MarshalJSON() ([]byte, error) + type ResponseRef struct + Ref string + Value *Response + func (r ResponseRef) MarshalJSON() ([]byte, error) + type Responses map[string]ResponseRef + type Schema struct + AdditionalProperties *SchemaRef + AllOf SchemaRefs + AllowEmptyValue bool + AnyOf SchemaRefs + Default interface{} + Deprecated bool + Description string + Discriminator *Discriminator + Enum []interface{} + Example interface{} + ExclusiveMax bool + ExclusiveMin bool + ExternalDocs *ExternalDocs + Format string + Items *SchemaRef + Max *float64 + MaxItems *uint64 + MaxLength *uint64 + MaxProps *uint64 + Min *float64 + MinItems uint64 + MinLength uint64 + MinProps uint64 + MultipleOf *float64 + Not *SchemaRef + Nullable bool + OneOf SchemaRefs + Pattern string + Properties Schemas + ReadOnly bool + Required []string + Title string + Type string + UniqueItems bool + ValidationRules string + WriteOnly bool + XExtensions XExtensions + XML interface{} + func (s *Schema) Clone() *Schema + func (s Schema) MarshalJSON() ([]byte, error) + type SchemaRef struct + Ref string + Value *Schema + func (r SchemaRef) MarshalJSON() ([]byte, error) + type SchemaRefs []SchemaRef + type Schemas struct + func (s *Schemas) Clone() Schemas + func (s *Schemas) Get(name string) *SchemaRef + func (s *Schemas) Iterator(f func(key string, ref SchemaRef) bool) + func (s *Schemas) Map() map[string]SchemaRef + func (s *Schemas) Removes(names []interface{}) + func (s *Schemas) Set(name string, ref SchemaRef) + func (s Schemas) MarshalJSON() ([]byte, error) + type SecurityRequirement map[string][]string + type SecurityRequirements []SecurityRequirement + type SecurityScheme struct + BearerFormat string + Description string + Flows *OAuthFlows + In string + Name string + OpenIdConnectUrl string + Scheme string + Type string + type SecuritySchemeRef struct + Ref string + Value *SecurityScheme + func (r SecuritySchemeRef) MarshalJSON() ([]byte, error) + type SecuritySchemes map[string]SecuritySchemeRef + type Server struct + Description string + URL string + Variables map[string]*ServerVariable + type ServerVariable struct + Default string + Description string + Enum []string + type Servers []Server + type Tag struct + Description string + ExternalDocs *ExternalDocs + Name string + type Tags []Tag + type XExtensions map[string]string