Documentation ¶
Index ¶
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Param ¶
type Param struct { Name string `json:"name"` In ParamLocation `json:"in"` Description string `json:"description,omitempty"` Required bool `json:"required,omitempty"` }
type ParamLocation ¶
type ParamLocation string
const ( QueryParam ParamLocation = "query" HeaderParam ParamLocation = "header" PathParam ParamLocation = "path" CookieParam ParamLocation = "cookie" )
type Path ¶
type Path struct { Summary string `json:"summary,omitempty"` Description string `json:"description,omitempty"` Get *Operation `json:"get,omitempty"` Put *Operation `json:"put,omitempty"` Post *Operation `json:"post,omitempty"` Delete *Operation `json:"delete,omitempty"` Options *Operation `json:"options,omitempty"` Head *Operation `json:"head,omitempty"` Patch *Operation `json:"patch,omitempty"` Trace *Operation `json:"trace,omitempty"` }
type Properties ¶
type Type ¶
type Type struct { Type TypeName `json:"type,omitempty"` Format Format `json:"format,omitempty"` Properties Properties `json:"properties,omitempty"` Items *Type `json:"items,omitempty"` Tags map[string]string `json:"tags,omitempty"` }
func ResolveType ¶
func ResolveTypeOf ¶
func (Type) ExampleJSON ¶
func (Type) ExampleValue ¶
Click to show internal directories.
Click to hide internal directories.