Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResponseMimeTypes ¶
func ResponseMimeTypes() []string
Types ¶
type OperationObject ¶
type OperationObject struct { Deprecated bool `json:"deprecated,omitempty"` Tags []string `json:"tags,omitempty"` Summary string `json:"summary,omitempty"` Description string `json:"description,omitempty"` OperationId string `json:"operation_id,omitempty"` RequestBody *RequestBodyObject `json:"requestBody,omitempty"` Parameters []ParameterObject `json:"parameters,omitempty"` Responses map[uint]any `json:"responses,omitempty"` Security []map[string][]string `json:"security,omitempty"` }
type ParameterObject ¶
type ParameterObject struct { Index int `json:"-"` Name string `json:"name,omitempty"` In string `json:"in,omitempty"` Description string `json:"description,omitempty"` Required bool `json:"required"` Schema map[string]any `json:"schema,omitempty"` Deprecated bool `json:"deprecated,omitempty"` RequestBody map[string]any `json:"requestBody,omitempty"` AllowEmptyValue bool `json:"allow_empty_value,omitempty"` Style string `json:"style,omitempty"` }
type RequestBodyObject ¶
type RequestBodyObject struct { Description string `json:"description,omitempty"` Content map[string]any `json:"content,omitempty"` Required bool `json:"required,omitempty"` }
func JsonRefRequestBody ¶
func JsonRefRequestBody(ref string, typ string) *RequestBodyObject
type Swagger ¶
type Swagger struct { Servers []Server `json:"servers,omitempty"` Openapi string `json:"openapi,omitempty"` Paths map[string]map[string]OperationObject `json:"paths,omitempty"` Schemes []string `json:"schemes,omitempty"` Host string `json:"host,omitempty"` Components map[string]any `json:"components,omitempty"` Info SwaggerInfo `json:"info,omitempty"` }
func GenSwagger ¶
Click to show internal directories.
Click to hide internal directories.