Versions in this module Expand all Collapse all v0 v0.1.1 Jan 31, 2021 v0.1.0 Aug 25, 2018 Changes in this version + type Contact struct + Email string + Name string + Url string + func (s *Contact) Validate() []error + type Definitions map[string]Schema + type Documentation struct + Description string + Url string + func (s *Documentation) Validate() []error + type ErrorList []error + func (e ErrorList) Indent(ind string) string + func (e ErrorList) String() string + type Example map[string]interface + type Header struct + Description string + func (s *Header) Validate() []error + type Headers map[string]Header + type Info struct + Contact *Contact + Description string + License *License + TermsOfService string + Title string + Version string + func (s *Info) Validate() []error + type ItemsDef struct + AdditionalProperties *ItemsDef + CollectionFormat string + Default interface{} + Enum []interface{} + ExclusiveMaximum *bool + ExclusiveMinimum *bool + Format string + Items *ItemsDef + MaxItems *int + MaxLength *int + Maximum *float64 + MinItems *int + MinLength *int + Minimum *float64 + MultipleOf *float64 + Pattern *string + Ref string + Type string + UniqueItems *bool + func (s *ItemsDef) Validate() []error + type License struct + Name string + Url string + func (s *License) Validate() []error + type Operation struct + Consumes []string + Deprecated bool + Description string + ExternalDocs *Documentation + OperationId string + Parameters []Parameter + Produces []string + Responses Responses + Schemes []string + Security []Security + Summary string + Tags []string + func (s *Operation) Validate() []error + type Parameter struct + Description string + In string + Name string + Required *bool + Schema *Schema + func (s *Parameter) Validate() []error + type Parameters map[string]Parameter + type PathItem struct + Delete *Operation + Get *Operation + Head *Operation + Options *Operation + Parameters []Parameter + Patch *Operation + Post *Operation + Put *Operation + Ref string + func (s *PathItem) Validate() []error + type Paths map[string]PathItem + type Response struct + Description string + Examples Example + Headers Headers + Schema *Schema + func (s *Response) Validate() []error + type Responses map[string]Response + type Schema struct + AllOf []Schema + Description string + Discriminator string + Example interface{} + ExternalDocs *Documentation + MaxProperties *int + MinProperties *int + Properties map[string]Schema + ReadOnly *bool + Required []string + Title string + Xml *Xml + func (s *Schema) Validate() []error + type Scopes map[string]string + type Security map[string][]string + type SecurityDefinition struct + AuthorizationUrl string + Description string + Flow string + In string + Name string + Scopes Scopes + TokenUrl string + Type string + func (s *SecurityDefinition) Validate() []error + type SecurityDefinitions map[string]SecurityDefinition + type Swagger struct + BasePath string + Consumes []string + Definitions Definitions + ExternalDocs *Documentation + Host string + Info Info + Parameters Parameters + Paths Paths + Produces []string + Responses Responses + Schemes []string + Security []Security + SecurityDefinitions SecurityDefinitions + Swagger string + Tags []Tag + func LoadJson(in []byte) (*Swagger, error) + func LoadYaml(in []byte) (*Swagger, error) + func (s *Swagger) Json() ([]byte, error) + func (s *Swagger) Validate() []error + func (s *Swagger) Yaml() ([]byte, error) + type Tag struct + Description string + ExternalDocs *Documentation + Name string + func (s *Tag) Validate() []error + type Xml struct + Attribute *bool + Name string + Namespace string + Prefix string + Wrapped *bool + func (s *Xml) Validate() []error