Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetOpenAPISpecJSON ¶
GetOpenAPISpecJSON returns the raw OpenAPI spec as JSON bytes.
Types ¶
type Error ¶
type Error struct {
// Error code
Code int32 `json:"code" form:"code"`
// Error message
Message string `json:"message" form:"message"`
}
#/components/schemas/Error
func (*Error) ApplyDefaults ¶
func (s *Error) ApplyDefaults()
ApplyDefaults sets default values for fields that are nil.
type OneOf2Things ¶
type OneOf2Things struct {
OneOf2ThingsOneOf0 *OneOf2ThingsOneOf0
OneOf2ThingsOneOf1 *OneOf2ThingsOneOf1
}
#/components/schemas/OneOf2things Notice that the `things` is not capitalised
func (*OneOf2Things) ApplyDefaults ¶
func (u *OneOf2Things) ApplyDefaults()
ApplyDefaults sets default values for fields that are nil.
func (OneOf2Things) MarshalJSON ¶
func (u OneOf2Things) MarshalJSON() ([]byte, error)
func (*OneOf2Things) UnmarshalJSON ¶
func (u *OneOf2Things) UnmarshalJSON(data []byte) error
type OneOf2ThingsOneOf0 ¶
type OneOf2ThingsOneOf0 struct {
ID int `json:"id" form:"id"`
}
#/components/schemas/OneOf2things/oneOf/0
func (*OneOf2ThingsOneOf0) ApplyDefaults ¶
func (s *OneOf2ThingsOneOf0) ApplyDefaults()
ApplyDefaults sets default values for fields that are nil.
type OneOf2ThingsOneOf1 ¶
type OneOf2ThingsOneOf1 struct {
ID UUID `json:"id" form:"id"`
}
#/components/schemas/OneOf2things/oneOf/1
func (*OneOf2ThingsOneOf1) ApplyDefaults ¶
func (s *OneOf2ThingsOneOf1) ApplyDefaults()
ApplyDefaults sets default values for fields that are nil.
Click to show internal directories.
Click to hide internal directories.