{
    "format": "tsv",
    "definitions": {},
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$id": "http://example.com/root.json",
    "type": "object",
    "title": "Apple Music Content Demographics Schema",
    "required": [
        "Storefront Name",
        "Listeners",
        "Streams"
    ],
    "properties": {
        "Ingest Datestamp": {
            "$id": "#/properties/Ingest Datestamp",
            "type": "string",
            "title": "Ingest Datestamp",
            "default": "",
            "examples": [
                "2019-06-20"
            ],
            "format": "date-time",
            "pattern": "^\\d{4}\\-\\d{2}\\-\\d{2}$"
        },
        "DateStamp": {
            "$id": "#/properties/DateStamp",
            "type": "string",
            "title": "The Datestamp Schema",
            "default": "",
            "examples": [
                "2019-06-20"
            ],
            "format": "date-time",
            "pattern": "^\\d{4}\\-\\d{2}\\-\\d{2}$"
        },
        "Apple Identifier": {
            "$id": "#/properties/Apple Identifier",
            "type": "string",
            "title": "The Apple identifier Schema",
            "default": "",
            "examples": [
                "677622861"
            ],
            "pattern": "^(\\d+)$"
        },
        "Storefront Name": {
            "$id": "#/properties/Storefront Name",
            "type": "string",
            "title": "The Storefront name Schema",
            "default": "",
            "examples": [
                "JP"
            ],
            "pattern": "^[A-Z]{2}$"
        },
        "Membership Type": {
            "$id": "#/properties/Membership Type",
            "type": "string",
            "title": "The Membership type Schema",
            "default": "",
            "examples": [
                "Individual Monthly"
            ],
            "pattern": "^(.*)$"
        },
        "Membership Mode": {
            "$id": "#/properties/Membership Mode",
            "type": "string",
            "title": "The Membership mode Schema",
            "default": "",
            "examples": [
                "Gratis Trial"
            ],
            "pattern": "^(.*)$"
        },
        "Action Type": {
            "$id": "#/properties/Action Type",
            "type": "string",
            "pattern": "^([\\d]+)$",
            "title": "The Action type Schema",
            "default": "",
            "examples": [
                "1"
            ]
        },
        "Gender": {
            "$id": "#/properties/Gender",
            "type": "string",
            "pattern": "^([\\d]+)$",
            "title": "The Gender Schema",
            "default": "",
            "examples": [
                "1"
            ]
        },
        "Age Band": {
            "$id": "#/properties/Age Band",
            "type": "string",
            "title": "The Age band Schema",
            "default": "",
            "examples": [
                "12-24",
                "Data Unknown"
            ],
            "pattern": "^(.*)$"
        },
        "Listeners": {
            "$id": "#/properties/Listeners",
            "type": "string",
            "pattern": "^([\\d]+)$",
            "title": "The Listeners Schema",
            "default": "",
            "examples": [
                "18273891"
            ],
            "minimum": 0
        },
        "Streams": {
            "$id": "#/properties/Streams",
            "type": "string",
            "pattern": "^([\\d]+)$",
            "title": "The Streams Schema",
            "default": "",
            "examples": [
                "12312"
            ]
        }
    }
}
