Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Data ¶
type Data struct { // array field ArrayField []string `json:"arrayField"` // id ID string `json:"id,omitempty"` // nested Nested *NestedData `json:"nested,omitempty"` // num Num int64 `json:"num,omitempty"` }
Data data swagger:model Data
type DefaultBadRequest ¶
type DefaultBadRequest struct {
Msg string `json:"msg"`
}
DefaultBadRequest represents a generic 400 response. It used internally by Swagger as the response when a request fails the validation defined in the Swagger yml file.
func (DefaultBadRequest) Error ¶
func (d DefaultBadRequest) Error() string
Error returns the validation error that caused the 400.
type DefaultInternalError ¶
type DefaultInternalError struct {
Msg string `json:"msg"`
}
DefaultInternalError represents a generic 500 response.
func (DefaultInternalError) Error ¶
func (d DefaultInternalError) Error() string
Error returns the internal error that caused the 500.
type NestedData ¶
type NestedData struct { // id ID string `json:"id,omitempty"` // name Name string `json:"name,omitempty"` }
NestedData nested data swagger:model NestedData
type PatchData ¶
type PatchData struct { // array field ArrayField []string `json:"arrayField"` // id ID *string `json:"id,omitempty"` // nested Nested *NestedData `json:"nested,omitempty"` // num Num *int64 `json:"num,omitempty"` }
PatchData patch data swagger:model PatchData
type Wagpatch2Input ¶
Wagpatch2Input holds the input parameters for a wagpatch2 operation.
func (Wagpatch2Input) Validate ¶
func (i Wagpatch2Input) Validate() error
Validate returns an error if any of the Wagpatch2Input parameters don't satisfy the requirements from the swagger yml file.