models

package
v0.0.0-...-0dbe039 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorModel

type ErrorModel struct {

	// code
	// Required: true
	Code *int64 `json:"Code"`

	// message
	// Required: true
	Message *string `json:"Message"`
}

ErrorModel error model

swagger:model ErrorModel

func (*ErrorModel) ContextValidate

func (m *ErrorModel) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this error model based on context it is used

func (*ErrorModel) MarshalBinary

func (m *ErrorModel) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ErrorModel) UnmarshalBinary

func (m *ErrorModel) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ErrorModel) Validate

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

Validate validates this error model

type Pet

type Pet struct {

	// category
	// Min Length: 1
	Category string `json:"category,omitempty"`

	// id
	// Read Only: true
	ID int64 `json:"id,omitempty"`

	// name
	// Required: true
	// Min Length: 1
	Name *string `json:"name"`
}

Pet pet

swagger:model pet

func (*Pet) ContextValidate

func (m *Pet) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this pet based on the context it is used

func (*Pet) MarshalBinary

func (m *Pet) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Pet) UnmarshalBinary

func (m *Pet) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Pet) Validate

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

Validate validates this pet

Jump to

Keyboard shortcuts

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