Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExternalDocs ¶
type FormProperties ¶ added in v1.3.0
func NewFormProperties ¶ added in v1.3.0
func NewFormProperties(name string, typ reflect.Type) FormProperties
type ModelSchema ¶
type ModelSchema struct { Model string Type string FieldProperties []Properties }
func NewObjectModelSchema ¶ added in v1.2.9
func NewObjectModelSchema(typ reflect.Type) ModelSchema
type Object ¶
type Object map[string]interface{}
func BuildOpenAPI ¶
func BuildOpenAPI(info Info, docs ExternalDocs, servers []string, tags []Tag, api []API, models []ModelSchema) Object
type Properties ¶ added in v1.3.0
type RequestBody ¶
type Schema ¶
type Schema struct { Ref string ContentType string Type string Format string FormProperties []FormProperties }
func NewArraySchema ¶ added in v1.2.9
func NewFormSchema ¶ added in v1.3.0
func NewFormSchema(properties []FormProperties) Schema
func NewJsonSchema ¶ added in v1.2.9
func NewMultipartSchema ¶ added in v1.3.0
func NewObjectSchema ¶ added in v1.2.9
func NewStreamSchema ¶ added in v1.3.0
func NewStreamSchema() Schema
type Tag ¶
type Tag struct { Name string Description string ExternalDocs ExternalDocs }
Click to show internal directories.
Click to hide internal directories.