{
    "format": "tsv",
    "definitions": {},
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$id": "http://example.com/root.json",
    "type": "object",
    "title": "Apple Music Streams Schema",
    "required": [
        "Datestamp",
        "Ingest Datestamp",
        "Apple Identifier",
        "Storefront Name",
        "Anonymized Person ID",
        "Membership Type",
        "Membership Mode",
        "Postal Code",
        "Device Type",
        "Operating System",
        "Action Type",
        "End Reason Type",
        "Offline",
        "Source of Stream",
        "Container Type",
        "Container Sub-Type",
        "Container ID",
        "Container Name",
        "Stream Timestamp",
        "Stream Start Position",
        "Stream Duration",
        "Media Duration",
        "UTC Offset"
    ],
    "properties": {
        "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}$"
        },
        "Ingest Datestamp": {
            "$id": "#/properties/Ingest Datestamp",
            "type": "string",
            "title": "The Ingest 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": [
                "117892348"
            ],
            "pattern": "^([\\d]+)$"
        },
        "Storefront Name": {
            "$id": "#/properties/Storefront Name",
            "type": "string",
            "title": "The Storefront name Schema",
            "default": "",
            "examples": [
                "CZ"
            ],
            "pattern": "^[A-Z]{2}$"
        },
        "Anonymized Person ID": {
            "$id": "#/properties/Anonymized Person ID",
            "type": "string",
            "title": "The Anonymized person id Schema",
            "default": "",
            "examples": [
                "93e673da2c10cf0faf5e5bea4c7844cf8c6c40f382e7cb8951f221081024321f"
            ],
            "pattern": "^(.*)$"
        },
        "Membership Type": {
            "$id": "#/properties/Membership Type",
            "type": "string",
            "title": "The Membership type Schema",
            "default": "",
            "examples": [
                "Student Individual Monthly"
            ],
            "pattern": "^(.*)$"
        },
        "Membership Mode": {
            "$id": "#/properties/Membership Mode",
            "type": "string",
            "title": "The Membership mode Schema",
            "default": "",
            "examples": [
                "PAID"
            ],
            "pattern": "^(.*)$"
        },
        "Postal Code": {
            "$id": "#/properties/Postal Code",
            "type": "string",
            "title": "The Postal code Schema",
            "default": "",
            "examples": [
                "33015",
                "R8N 1L4"
            ],
            "pattern": "^(.*)$"
        },
        "Device Type": {
            "$id": "#/properties/Device Type",
            "type": "string",
            "title": "The Device type Schema",
            "default": "",
            "examples": [
                "1"
            ],
            "pattern": "^([\\d]+)$"
        },
        "Operating System": {
            "$id": "#/properties/Operating System",
            "type": "string",
            "title": "The Operating system Schema",
            "default": "",
            "examples": [
                "2"
            ],
            "pattern": "^([\\d]+)$"
        },
        "Action Type": {
            "$id": "#/properties/Action Type",
            "type": "string",
            "title": "The Action type Schema",
            "default": "",
            "examples": [
                "4"
            ],
            "pattern": "^([\\d]+)$"
        },
        "End Reason Type": {
            "$id": "#/properties/End Reason Type",
            "type": "string",
            "title": "The End reason type Schema",
            "default": "",
            "examples": [
                "4"
            ],
            "pattern": "^([\\d]+)$"
        },
        "Offline": {
            "$id": "#/properties/Offline",
            "type": "string",
            "title": "The Offline Schema",
            "default": "",
            "examples": [
                "1",
                "0"
            ],
            "pattern": "^([\\d]+)$"
        },
        "Source of Stream": {
            "$id": "#/properties/Source of Stream",
            "type": "string",
            "title": "The Source of stream Schema",
            "default": "",
            "examples": [
                "1",
                "0"
            ],
            "pattern": "^([\\d]+)$"
        },
        "Container Type": {
            "$id": "#/properties/Container Type",
            "type": "string",
            "title": "The Container type Schema",
            "default": "",
            "examples": [
                "2"
            ],
            "pattern": "^([\\d]+)$"
        },
        "Container Sub-Type": {
            "$id": "#/properties/Container Sub-Type",
            "type": "string",
            "title": "The Container sub-type Schema",
            "default": "",
            "pattern": "^([\\d]+)$"
        },
        "Container ID": {
            "$id": "#/properties/Container ID",
            "type": "string",
            "title": "The Container id Schema",
            "default": "",
            "pattern": "^(.*)$"
        },
        "Container Name": {
            "$id": "#/properties/Container Name",
            "type": "string",
            "title": "The Container name Schema",
            "default": "",
            "pattern": "^(.*)$"
        },
        "Stream Timestamp": {
            "$id": "#/properties/Stream Timestamp",
            "type": "string",
            "title": "The Stream timestamp Schema",
            "default": "",
            "examples": [
                "1558872426"
            ],
            "pattern": "^([\\d]+)$"
        },
        "Stream Start Position": {
            "$id": "#/properties/Stream Start Position",
            "type": "string",
            "title": "The Stream start position Schema",
            "default": "",
            "examples": [
                "18273"
            ],
            "pattern": "^([\\d]+)$"
        },
        "Stream Duration": {
            "$id": "#/properties/Stream Duration",
            "type": "string",
            "title": "The Stream duration Schema",
            "default": "",
            "examples": [
                "259"
            ],
            "pattern": "^([\\d]+)$"
        },
        "Media Duration": {
            "$id": "#/properties/Media Duration",
            "type": "string",
            "title": "The Media duration Schema",
            "default": "",
            "examples": [
                "241"
            ],
            "pattern": "^([\\d]+)$"
        },
        "UTC Offset": {
            "$id": "#/properties/UTC Offset",
            "type": "string",
            "title": "UTC Offset",
            "default": "",
            "examples": [
                "+09:00"
            ],
            "format": "string",
            "pattern": "^[+-]([01]\\d|2[0-4])(:?[0-5]\\d)?$"
        }
    }
}
