Documentation ¶
Index ¶
- Constants
- type Param
- func NewArrayParam(name string, description string, required bool, items []Param) Param
- func NewBooleanParam(name string, description string, required bool, defaultValue ...interface{}) Param
- func NewExtendedRefArrayParam(name string, description string, required bool, ref string, items []Param) Param
- func NewExtendedRefObjectParam(name string, description string, required bool, ref string, ...) Param
- func NewIntParam(name string, description string, required bool, defaultValue ...interface{}) Param
- func NewNumberParam(name string, description string, required bool, defaultValue ...interface{}) Param
- func NewObjectParam(name string, description string, required bool, properties map[string]Param) Param
- func NewParam(name string, dataType string, description string, required bool, ...) Param
- func NewRefArrayParam(name string, description string, required bool, ref string) Param
- func NewRefObjectParam(name string, description string, required bool, ref string) Param
- func NewStringParam(name string, description string, required bool, defaultValue ...interface{}) Param
- type RequestParams
- type ResponseParams
Constants ¶
View Source
const ( String = "string" Integer = "integer" Number = "number" Boolean = "boolean" Object = "object" Array = "array" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Param ¶
type Param struct { Name string Type string Ref string Required bool Description string Default interface{} Format string `description:"https://json-schema.org/understanding-json-schema/reference/string.html#built-in-formats"` Properties map[string]Param Items []Param }
func NewArrayParam ¶
func NewBooleanParam ¶
func NewIntParam ¶
func NewNumberParam ¶
func NewObjectParam ¶
func NewRefArrayParam ¶
func NewRefObjectParam ¶
type RequestParams ¶
Click to show internal directories.
Click to hide internal directories.