Documentation ¶
Index ¶
- func GenerateCode() error
- type CollectionFormat
- type Contact
- type ExampleMap
- type ExampleMapKey
- type Extensions
- type ExternalDocumentation
- type Header
- type HeaderMap
- type HeaderMapKey
- type Info
- type InterfaceList
- type InterfaceMap
- type InterfaceMapKey
- type Items
- type License
- type Location
- type MIMEType
- type MIMETypeList
- type MediaType
- type OpenAPI
- type Operation
- type Parameter
- type ParameterList
- type ParameterMap
- type ParameterMapKey
- type PathItem
- type PathItemMap
- type PathItemMapKey
- type Paths
- type PrimitiveType
- type ResolveError
- type Resolver
- type Response
- type ResponseMap
- type ResponseMapKey
- type Responses
- type Schema
- type SchemaConverter
- type SchemaList
- type SchemaMap
- type SchemaMapKey
- type Scheme
- type SchemeList
- type ScopesMap
- type ScopesMapKey
- type SecurityRequirement
- type SecurityRequirementList
- type SecurityScheme
- type SecuritySchemeMap
- type SecuritySchemeMapKey
- type StringList
- type StringMap
- type StringMapKey
- type Swagger
- type Tag
- type TagList
- type Validator
- type XML
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateCode ¶
func GenerateCode() error
Types ¶
type CollectionFormat ¶
type CollectionFormat string
const ( CSV CollectionFormat = "csv" SSV CollectionFormat = "ssv" TSV CollectionFormat = "tsv" Pipes CollectionFormat = "pipes" Multi CollectionFormat = "multi" )
type ExampleMap ¶
type ExampleMap map[ExampleMapKey]interface{}
type ExampleMapKey ¶
type ExampleMapKey = string
type Extensions ¶
type Extensions map[string]interface{}
type ExternalDocumentation ¶
type ExternalDocumentation interface { }
type HeaderMap ¶
type HeaderMap map[HeaderMapKey]Header
type HeaderMapKey ¶
type HeaderMapKey = string
type InterfaceList ¶
type InterfaceList []interface{}
type InterfaceMap ¶
type InterfaceMap map[InterfaceMapKey]interface{}
type InterfaceMapKey ¶
type InterfaceMapKey = string
type Items ¶
type Items interface { SchemaConverter }
type MIMETypeList ¶
type MIMETypeList []MIMEType
type Parameter ¶
type Parameter interface { SchemaConverter }
type ParameterList ¶
type ParameterList []Parameter
type ParameterMap ¶
type ParameterMap map[ParameterMapKey]Parameter
type ParameterMapKey ¶
type ParameterMapKey = string
type PathItemMap ¶
type PathItemMap map[PathItemMapKey]PathItem
type PathItemMapKey ¶
type PathItemMapKey = string
type PrimitiveType ¶
type PrimitiveType string
const ( Invalid PrimitiveType = "invalid" Integer PrimitiveType = "integer" Number PrimitiveType = "number" String PrimitiveType = "string" Boolean PrimitiveType = "boolean" Object PrimitiveType = "object" Array PrimitiveType = "array" File PrimitiveType = "file" Null PrimitiveType = "null" )
type ResolveError ¶
type ResolveError interface {
Fatal() bool
}
ResolveError is returned when Resolver fails to resolve a reference (`$ref`)
type Resolver ¶
type Resolver interface { // Resolves a JSON reference. In very rare occasions where // you do not want to actually resolve the value but allow // processing to continue, you may return an error value // that implements ResolveError and return false for the // `Fatal` method. Resolve(string) (interface{}, error) }
Resolver resolves JSON references (`$ref`)
type ResponseMap ¶
type ResponseMap map[ResponseMapKey]Response
type ResponseMapKey ¶
type ResponseMapKey = string
type Schema ¶
type Schema interface { IsRequiredProperty(string) bool IsValid() bool SchemaConverter }
type SchemaConverter ¶
SchemaConverter is available for those types which resemble a Schema object, such as Parameter and Items. The resulting Schema will not be 100% compatible as the original object as available fields differ slightly, but should be close enough to be used interchangeably.
type SchemaList ¶
type SchemaList []Schema
type SchemaMap ¶
type SchemaMap map[SchemaMapKey]Schema
type SchemaMapKey ¶
type SchemaMapKey = string
type SchemeList ¶
type SchemeList []string
type ScopesMap ¶
type ScopesMap map[ScopesMapKey][]string
type ScopesMapKey ¶
type ScopesMapKey = string
type SecurityRequirement ¶
type SecurityRequirement interface { }
type SecurityRequirementList ¶
type SecurityRequirementList []SecurityRequirement
type SecurityScheme ¶
type SecurityScheme interface { }
type SecuritySchemeMap ¶
type SecuritySchemeMap map[SecuritySchemeMapKey]SecurityScheme
type SecuritySchemeMapKey ¶
type SecuritySchemeMapKey = string
type StringList ¶
type StringList []string
type StringMap ¶
type StringMap map[StringMapKey]string
type StringMapKey ¶
type StringMapKey = string
Click to show internal directories.
Click to hide internal directories.