{
    "format": "ndjson",
    "definitions": {},
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$id": "http://example.com/root.json",
    "type": "object",
    "title": "Spotify Sub 30 Sec Streams Schema",
    "required": [
    ],
    "properties": {
        "message": {
            "$id": "#/properties/message",
            "type": "string",
            "title": "Message header identifying API",
            "default": "",
            "examples": [
                "APIUserData"
            ],
            "pattern": "^([a-zA-Z-]*)$"
        },
        "version": {
            "$id": "#/properties/version",
            "type": "integer",
            "title": "The API version number",
            "default": "",
            "examples": [
                "2"
            ],
            "pattern": "^([\\d]+)$"
        },
        "user_id": {
            "$id": "#/properties/user_id",
            "type": "string",
            "title": "The User_id Schema",
            "default": "",
            "examples": [
                "00005bda07f8b09bc0ceed9343af3eda"
            ],
            "pattern": "^([a-f\\d]{32})$|^([a-f\\d]{64})$"
        },
        "track_id": {
            "$id": "#/properties/track_id",
            "type": "string",
            "title": "The Track_id Schema",
            "default": "",
            "examples": [
                "bb927b9866034a04ad21848f0f9973b3"
            ],
            "pattern": "^([a-f\\d]{32})$"
        },
        "timestamp": {
            "$id": "#/properties/timestamp",
            "type": "string",
            "title": "The Timestamp Schema",
            "default": "",
            "examples": [
                "20190527T19:47:00"
            ],
            "format": "date-time",
            "pattern": "^\\d{8}T\\d{2}:\\d{2}:\\d{2}$"
        },
        "length": {
            "$id": "#/properties/length",
            "type": "integer",
            "title": "The Length Schema",
            "default": "",
            "examples": [
                "1283234"
            ]
        },
        "region": {
            "$id": "#/properties/region",
            "type": "string",
            "title": "The Region Schema",
            "default": "",
            "examples": [
                "ES",
                "Unknown",
                "JP-14"
            ],
            "pattern": "^([a-zA-z-\\d]*)$"
        },
        "product": {
            "$id": "#/properties/product",
            "type": "string",
            "title": "The Product Schema",
            "default": "",
            "examples": [
                "some product"
            ],
            "pattern": "^(.*)$"
        },
        "country": {
            "$id": "#/properties/country",
            "type": "string",
            "title": "The Country Schema",
            "default": "",
            "examples": [
                "LU"
            ],
            "pattern": "^([A-Z]{2})$"
        },
        "new_user_id": {
            "$id": "#/properties/new_user_id",
            "type": "string",
            "title": "The New_user_id Schema",
            "default": "",
            "examples": [
                "b1477f7450e3f0ee29e1abf03bc4d481208e5e11b134e4aa935aadba5d005d2f"
            ],
            "pattern": "^([a-f\\d]{64})$"
        }
    }
}
