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 ¶
ContextValidate validates this error based on context it is used
func (*Error) MarshalBinary ¶
MarshalBinary interface implementation
func (*Error) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Item ¶
type Item string
Item item
swagger:model Item
func (Item) ContextValidate ¶
ContextValidate validates this item based on context it is used
type Order ¶
type Order struct { // order ID // Required: true OrderID *string `json:"orderID"` // order lines OrderLines []*OrderLine `json:"orderLines"` }
Order order
swagger:model Order
func (*Order) ContextValidate ¶
ContextValidate validate this order based on the context it is used
func (*Order) MarshalBinary ¶
MarshalBinary interface implementation
func (*Order) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type OrderLine ¶
type OrderLine struct { // purchased item // Required: true PurchasedItem *Item `json:"purchasedItem"` // quantity // Required: true // Minimum: 1 Quantity *int32 `json:"quantity"` }
OrderLine order line
swagger:model orderLine
func (*OrderLine) ContextValidate ¶
ContextValidate validate this order line based on the context it is used
func (*OrderLine) MarshalBinary ¶
MarshalBinary interface implementation
func (*OrderLine) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Principal ¶
type Principal struct { // name Name string `json:"name,omitempty"` // roles Roles []string `json:"roles"` }
Principal principal
swagger:model principal
func (*Principal) ContextValidate ¶
ContextValidate validates this principal based on context it is used
func (*Principal) MarshalBinary ¶
MarshalBinary interface implementation
func (*Principal) UnmarshalBinary ¶
UnmarshalBinary interface implementation