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

models

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2025 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 Error

type Error struct {

	// code
	Code int64 `json:"code,omitempty"`

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

Error error

swagger:model error

func (*Error) ContextValidate

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

ContextValidate validates this error based on context it is used

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) Validate

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

Validate validates this error

type FindTodosOKBody

type FindTodosOKBody []*Item

FindTodosOKBody find todos o k body swagger:model findTodosOKBody

func (FindTodosOKBody) Validate

func (m FindTodosOKBody) Validate(formats strfmt.Registry) error

Validate validates this find todos o k body

type Item

type Item struct {

	// completed
	Completed bool `json:"completed,omitempty"`

	// description
	// Required: true
	// Min Length: 1
	Description *string `json:"description"`

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

Item item

swagger:model item

func (*Item) ContextValidate

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

ContextValidate validate this item based on the context it is used

func (*Item) MarshalBinary

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

MarshalBinary interface implementation

func (*Item) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Item) Validate

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

Validate validates this item

Jump to

Keyboard shortcuts

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