{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "Product",
    "description": "A vaccine or related medical product",
    "type": "object",
    "properties": {
        "doc_type": {
            "type": "string",
            "pattern": "^product$"
        },
        "version": {
            "type": "string",
            "format": "semver"
        },
        "active": {
            "type": "boolean"
        },
        "baseUOM": {
            "type": "string",
            "description": "The standard unit of measurement for this product",
            "chance": {
                "hash": {
                    "length": 32
                }
            }
        },
        "code": {
            "type": "string",
            "faker": "hacker.abbreviation"
        },
        "description": {
            "type": "string",
            "faker": "lorem.sentence"
        },
        "name": {
            "type": "string",
            "faker": "company.catchPhrase"
        },
        "storage": {
            "enum": [
                "frozen",
                "refrigerator",
                "dry"
            ]
        }
    },
    "required": [
        "doc_type",
        "active",
        "baseUOM",
        "code",
        "description",
        "name",
        "storage"
    ]
}