Schema: Product_Type

Schema Definition

{
    "$schema": "http://json-schema.org/schema#",
    "description": "Designations for the a Type of a product",
    "properties": {
        "id": {
            "description": "ULID or An Internal SKU or Lot ID",
            "type": "string"
        },
        "name": {
            "description": "Name of Product Type",
            "type": "string"
        },
        "unit": {
            "properties": {
                "qty": {
                    "type": "number"
                },
                "type": {
                    "enum": [
                        "bulk",
                        "pack",
                        "each"
                    ],
                    "type": "string"
                },
                "uom": {
                    "enum": [
                        "ea",
                        "g",
                        "mg",
                        "ml"
                    ],
                    "type": "string"
                }
            },
            "type": "object"
        }
    },
    "required": [
        "id",
        "name",
        "unit"
    ],
    "type": "object"
}

Schema Samples