models

package
v0.0.0-...-4ddc152 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2018 License: MIT Imports: 5 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) 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 GetUsersOKBody

type GetUsersOKBody []*User

GetUsersOKBody get users o k body swagger:model getUsersOKBody

func (GetUsersOKBody) Validate

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

Validate validates this get users o k body

type SearchOKBody

type SearchOKBody []*User

SearchOKBody search o k body swagger:model searchOKBody

func (SearchOKBody) Validate

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

Validate validates this search o k body

type User

type User struct {

	// id
	// Read Only: true
	ID string `json:"_id,omitempty" bson:"_id"`

	// created
	Created string `json:"created,omitempty"`

	// email
	// Required: true
	// Min Length: 3
	Email *string `json:"email" bson:"email"`

	// family name
	// Required: true
	// Min Length: 1
	FamilyName *string `json:"familyName" bson:"familyName"`

	// given name
	// Required: true
	// Min Length: 1
	GivenName *string `json:"givenName" bson:"givenName"`
}

User user swagger:model user

func (*User) MarshalBinary

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

MarshalBinary interface implementation

func (*User) UnmarshalBinary

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

UnmarshalBinary interface implementation

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