Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GenericError ¶
type GenericError struct { // message Message string `json:"message,omitempty"` }
GenericError GenericError is a generic error message returned by a server swagger:model GenericError
func (*GenericError) MarshalBinary ¶
func (m *GenericError) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GenericError) UnmarshalBinary ¶
func (m *GenericError) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Product ¶
type Product struct { // the description of the product // Max Length: 1000 Description string `json:"description,omitempty"` // the id for the product // Minimum: 1 ID int64 `json:"id,omitempty"` // the name for this product // Required: true // Min Length: 1 Name *string `json:"name"` // the price of the product // Required: true // Maximum: 10 // Minimum: 0.01 Price *float32 `json:"price"` // the unique stock keeping unit (SKU) for the product // Required: true // Pattern: [a-z0-9]+\-[a-z0-9]+\-[a-z0-9] SKU *string `json:"sku"` }
Product Product defines the structure for an API product swagger:model Product
func (*Product) MarshalBinary ¶
MarshalBinary interface implementation
func (*Product) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type ValidationError ¶
type ValidationError struct { // messages Messages []string `json:"messages"` }
ValidationError ValidationError is a collection of validation error messages swagger:model ValidationError
func (*ValidationError) MarshalBinary ¶
func (m *ValidationError) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ValidationError) UnmarshalBinary ¶
func (m *ValidationError) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
Click to show internal directories.
Click to hide internal directories.