import "github.com/go-swagger/go-swagger/examples/composed-auth/models"
error.go item.go order.go principal.go
type Error struct { // code Code int64 `json:"code,omitempty"` // message // Required: true Message *string `json:"message"` }
Error error
swagger:model Error
ContextValidate validates this error based on context it is used
MarshalBinary interface implementation
UnmarshalBinary interface implementation
Validate validates this error
Item item
swagger:model Item
ContextValidate validates this item based on context it is used
Validate validates this item
type Order struct { // order ID // Required: true OrderID *string `json:"orderID"` // order lines OrderLines []*OrderLine `json:"orderLines"` }
Order order
swagger:model Order
ContextValidate validate this order based on the context it is used
MarshalBinary interface implementation
UnmarshalBinary interface implementation
Validate validates this order
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
ContextValidate validate this order line based on the context it is used
MarshalBinary interface implementation
UnmarshalBinary interface implementation
Validate validates this order line
type Principal struct { // name Name string `json:"name,omitempty"` // roles Roles []string `json:"roles"` }
Principal principal
swagger:model principal
ContextValidate validates this principal based on context it is used
MarshalBinary interface implementation
UnmarshalBinary interface implementation
Validate validates this principal
Package models imports 6 packages (graph) and is imported by 3 packages. Updated 2021-01-25. Refresh now. Tools for package owners.