Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidStyle = errors.New("invalid parameter style") ErrInvalidLocation = errors.New("invalid parameter location") )
Functions ¶
This section is empty.
Types ¶
type InvalidParamStyleError ¶
type InvalidParamStyleError struct {
Struct reflect.Type
Field reflect.StructField
// Type of the parameter, can be different than the field type.
Type reflect.Type
Style Style
DataType DataType
Location Location
Msg string
UnderlineMsg string
// contains filtered or unexported fields
}
func (InvalidParamStyleError) Error ¶
func (e InvalidParamStyleError) Error() string
func (InvalidParamStyleError) ErrorWithColor ¶
func (e InvalidParamStyleError) ErrorWithColor(c structs.Colors) string
func (InvalidParamStyleError) Unwrap ¶
func (e InvalidParamStyleError) Unwrap() error
type Parameter ¶
func (*Parameter) SetSchema ¶
func (p *Parameter) SetSchema(schema jsonschema.Schema)
type Style ¶
type Style string
https://spec.openapis.org/oas/v3.1.0#styleValues
func StyleFromString ¶
Click to show internal directories.
Click to hide internal directories.