Schema: producttype

Schema Definition

{
    "$schema": "http:\/\/json-schema.org\/schema#",
    "type": "object",
    "properties": {
        "stub": {
            "type": "string"
        },
        "guid": {
            "type": "string",
            "description": "The Product Type GUID, if it has one, else a stub"
        },
        "meta": {
            "type": "object"
        },
        "name": {
            "type": "string"
        },
        "unit": {
            "type": "object",
            "properties": {
                "count": {
                    "type": "number"
                },
                "type": {
                    "enum": [
                        "bulk",
                        "pack",
                        "each"
                    ],
                    "type": "enum"
                },
                "weight": {
                    "type": "number"
                }
            }
        }
    }
}

Schema Samples