Documentation
¶
Overview ¶
Code generated by jsonschema. DO NOT EDIT.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Product ¶
type Product struct { // The price of the product Price *float64 `json:"price,omitempty", validate:"gt=0"` // Tags for the product Tags []string `json:"tags,omitempty"` Dimensions *struct { Length float64 `json:"length", validate:"required"` Width float64 `json:"width", validate:"required"` Height float64 `json:"height", validate:"required"` } `json:"dimensions,omitempty"` ProductType *ProductType `json:"type,omitempty"` // The unique identifier for a product ProductId *int32 `json:"productId,omitempty"` // Name of the product ProductName *string `json:"productName,omitempty"` }
A product from Acme's catalog
type ProductType ¶
type ProductType string
const ( ProductType_Red ProductType = "red" ProductType_Amber ProductType = "amber" ProductType_Green ProductType = "green" )
Click to show internal directories.
Click to hide internal directories.