Help us shape the future of Go! Take the 2026 Go Developer Survey

model

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Contact

type Contact struct {

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

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

Contact contact

swagger:model Contact

func (*Contact) MarshalBinary

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

MarshalBinary interface implementation

func (*Contact) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Contact) UnmarshalJSON

func (m *Contact) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals this object while disallowing additional properties from JSON

func (*Contact) Validate

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

Validate validates this contact

type Error

type Error struct {

	// Either same as HTTP Status Code OR >= 600 with HTTP Status Code 422.
	// Required: true
	Code *int32 `json:"code"`

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

Error error

swagger:model Error

func (*Error) MarshalBinary

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

MarshalBinary interface implementation

func (*Error) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Error) UnmarshalJSON

func (m *Error) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals this object while disallowing additional properties from JSON

func (*Error) Validate

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

Validate validates this error

Jump to

Keyboard shortcuts

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