models

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2015 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 APIResponse added in v0.2.0

type APIResponse struct {

	/* Code code
	 */
	Code int32 `json:"code,omitempty"`

	/* Message message
	 */
	Message *string `json:"message,omitempty"`

	/* Type type
	 */
	Type *string `json:"type,omitempty"`
}

APIResponse api response

swagger:model ApiResponse

func (*APIResponse) Validate added in v0.2.0

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

Validate validates this api response

type Category

type Category struct {

	/* ID id
	 */
	ID int64 `json:"id,omitempty"`

	/* Name name
	 */
	Name *string `json:"name,omitempty"`
}

Category category

swagger:model Category

func (*Category) Validate

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

Validate validates this category

type Order

type Order struct {

	/* Complete complete
	 */
	Complete *bool `json:"complete,omitempty"`

	/* ID id
	 */
	ID int64 `json:"id,omitempty"`

	/* PetID pet id
	 */
	PetID int64 `json:"petId,omitempty"`

	/* Quantity quantity
	 */
	Quantity int32 `json:"quantity,omitempty"`

	/* ShipDate ship date
	 */
	ShipDate strfmt.DateTime `json:"shipDate,omitempty"`

	/* Order Status
	 */
	Status *string `json:"status,omitempty"`
}

Order order

swagger:model Order

func (*Order) Validate

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

Validate validates this order

type Pet

type Pet struct {

	/* Category category
	 */
	Category *Category `json:"category,omitempty"`

	/* ID id
	 */
	ID int64 `json:"id,omitempty"`

	/* Name name

	Required: true
	*/
	Name string `json:"name,omitempty"`

	/* PhotoUrls photo urls

	Required: true
	*/
	PhotoUrls []string `json:"photoUrls,omitempty" xml:"photoUrl"`

	/* pet status in the store
	 */
	Status *string `json:"status,omitempty"`

	/* Tags tags
	 */
	Tags []*Tag `json:"tags,omitempty" xml:"tag"`
}

Pet pet

swagger:model Pet

func (*Pet) Validate

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

Validate validates this pet

type Tag

type Tag struct {

	/* ID id
	 */
	ID int64 `json:"id,omitempty"`

	/* Name name
	 */
	Name *string `json:"name,omitempty"`
}

Tag tag

swagger:model Tag

func (*Tag) Validate

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

Validate validates this tag

type User

type User struct {

	/* Email email
	 */
	Email *string `json:"email,omitempty"`

	/* FirstName first name
	 */
	FirstName *string `json:"firstName,omitempty"`

	/* ID id
	 */
	ID int64 `json:"id,omitempty"`

	/* LastName last name
	 */
	LastName *string `json:"lastName,omitempty"`

	/* Password password
	 */
	Password *string `json:"password,omitempty"`

	/* Phone phone
	 */
	Phone *string `json:"phone,omitempty"`

	/* User Status
	 */
	UserStatus int32 `json:"userStatus,omitempty"`

	/* Username username
	 */
	Username *string `json:"username,omitempty"`
}

User user

swagger:model User

func (*User) Validate

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

Validate validates this user

Jump to

Keyboard shortcuts

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