Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Components ¶
type Contents ¶
type Operation ¶
type Operation struct { Summary string `json:"summary"` Description string `json:"description,omitempty"` Responses Responses `json:"responses"` RequestBody *RequestBody `json:"requestBody,omitempty"` }
type Parameter ¶
type Parameter struct { Name string `json:"name"` In string `json:"in,omitempty"` Required bool `json:"required,omitempty"` Description string `json:"description,omitempty"` Schema Schema `json:"schema"` }
func PathParameter ¶
type Path ¶
type RequestBody ¶
type RequestBody struct {
Content Contents `json:"content,omitempty"`
}
type Responses ¶
type Schema ¶
type Schema struct { Type Type `json:"type,omitempty"` Format Format `json:"format,omitempty"` Properties map[string]Schema `json:"properties,omitempty"` Items *Schema `json:"items,omitempty"` Required []string `json:"required,omitempty"` Description string `json:"description,omitempty"` Example interface{} `json:"example,omitempty"` Ref string `json:"$ref,omitempty"` AdditionalProperties *Schema `json:"additionalProperties,omitempty"` }
func SchemaArrayFromTdField ¶
func SchemaArrayFromTdField(tdField codegen.TdStructField) Schema
func SchemaFromTdField ¶
func SchemaFromTdField(tdField codegen.TdStructField) (res Schema)
func SchemaFromType ¶
func SchemaFromType(v interface{}) Schema
func SchemaFromTypeName ¶
Click to show internal directories.
Click to hide internal directories.