models

package
v0.0.0-...-3e1300e Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HelloResponse

type HelloResponse struct {

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

HelloResponse オブジェクトを別に定義してみるサンプル

swagger:model HelloResponse

func (*HelloResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*HelloResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*HelloResponse) Validate

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

Validate validates this hello response

type RegisterRequestBody

type RegisterRequestBody struct {

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

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

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

RegisterRequestBody オブジェクトを別に定義してみるサンプル1

swagger:model RegisterRequestBody

func (*RegisterRequestBody) MarshalBinary

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

MarshalBinary interface implementation

func (*RegisterRequestBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RegisterRequestBody) Validate

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

Validate validates this register request body

Jump to

Keyboard shortcuts

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