Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Definition ¶
type Definition struct { Required []string `json:"required"` Type string `json:"type"` Properties Properties `json:"properties"` }
type Definitions ¶
type Definitions map[string]*Definition
type Properties ¶
type Property ¶
type Property struct { Ref string `json:"$ref"` Format PropertyFormat `json:"format"` Type PropertyType `json:"type"` Items *Property `json:"items"` }
type PropertyFormat ¶
type PropertyFormat string
const ( FormatDouble PropertyFormat = "double" FormatInt32 PropertyFormat = "int32" FormatInt64 PropertyFormat = "int64" FormatDateTime PropertyFormat = "date-time" )
type PropertyItems ¶
type PropertyItems struct { Ref string `json:"$ref"` Format PropertyFormat `json:"format"` Type PropertyType `json:"type"` }
type PropertyType ¶
type PropertyType string
const ( TypeString PropertyType = "string" TypeInteger PropertyType = "integer" TypeNumber PropertyType = "number" TypeArray PropertyType = "array" TypeBoolean PropertyType = "boolean" )
type Spec ¶
type Spec struct {
Definitions Definitions `json:"definitions"`
}
func FetchLocalSpec ¶
func FetchRemoteSpec ¶
Click to show internal directories.
Click to hide internal directories.