models

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

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

func (*Data) Validate

func (m *Data) Validate(formats strfmt.Registry) error

Validate validates this 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

func (*NestedData) Validate

func (m *NestedData) Validate(formats strfmt.Registry) error

Validate validates this nested data

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

func (*PatchData) Validate

func (m *PatchData) Validate(formats strfmt.Registry) error

Validate validates this patch data

type Wagpatch2Input

type Wagpatch2Input struct {
	Other        *string
	SpecialPatch *PatchData
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL