Schema: Inventory

Schema Definition

{
    "$schema": "http://json-schema.org/schema#",
    "description": "An Inventory of some Product and Variety",
    "properties": {
        "id": {
            "description": "The Inventory Unique Identifier",
            "type": "string"
        },
        "name": {
            "description": "Freeform name of the Inventory, if desired",
            "type": "string"
        },
        "product": {
            "$ref": "#/components/schemas/Product"
        },
        "qty": {
            "description": "Current Quantity of the Product on Hand",
            "format": "float",
            "type": "number"
        },
        "qty_initial": {
            "description": "Initial Quantity of the Product",
            "format": "float",
            "type": "number"
        },
        "section": {
            "$ref": "#/components/schemas/Section"
        },
        "variety": {
            "$ref": "#/components/schemas/Variety"
        }
    },
    "required": [
        "id",
        "product"
    ],
    "type": "object"
}

Schema Samples