nesting

package
v0.0.0-...-8a85022 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: MIT Imports: 0 Imported by: 0

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"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL