{
    "format": "ndjson",
    "definitions": {},
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$id": "http://example.com/root.json",
    "type": "object",
    "title": "Spotify Users Schema",
    "required": [
        "user_id",
        "country"
    ],
    "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}$"
        },
        "access": {
            "$id": "#/properties/access",
            "type": "string",
            "title": "The Access Schema",
            "default": "",
            "examples": [
                "free",
                "premium"
            ],
            "pattern": "^([\\w\\-\\s]*)$"
        },
        "type": {
            "$id": "#/properties/type",
            "type": "string",
            "title": "The Type Schema",
            "default": "",
            "examples": [
                "paid",
                "ad"
            ],
            "pattern": "^(.*)$"
        },
        "product": {
            "$id": "#/properties/product",
            "type": "string",
            "title": "The Product Schema",
            "default": "",
            "examples": [
                "family-sub"
            ],
            "pattern": "^(.*)$"
        },
        "partner": {
            "$id": "#/properties/partner",
            "type": "string",
            "title": "The Partner Schema",
            "default": "",
            "examples": [
                "partner name"
            ],
            "pattern": "^(.*)$"
        },
        "referral": {
            "$id": "#/properties/referral",
            "type": "string",
            "title": "The Referral Schema",
            "default": "",
            "examples": [
                "referral name"
            ],
            "pattern": "^(.*)$"
        },
        "country": {
            "$id": "#/properties/country",
            "type": "string",
            "title": "The Country Schema",
            "default": "",
            "examples": [
                "JP",
                "AU"
            ],
            "pattern": "^([A-Z]{2})$"
        },
        "birth_year": {
            "$id": "#/properties/birth_year",
            "type": "string",
            "title": "The Birth_year Schema",
            "default": "",
            "examples": [
                "1276"
            ],
            "pattern": "^(.*)$"
        },
        "gender": {
            "$id": "#/properties/gender",
            "type": "string",
            "title": "The Gender Schema",
            "default": "",
            "examples": [
                "male",
                "female"
            ],
            "pattern": "^(.*)$"
        },
        "region": {
            "$id": "#/properties/region",
            "type": "string",
            "title": "The Region Schema",
            "default": "",
            "examples": [
                "JP-14",
                "JP",
                "Unknown"
            ],
            "pattern": "^([a-zA-Z\\d-]*)$"
        },
        "zipcode": {
            "$id": "#/properties/zipcode",
            "type": "string",
            "title": "The Zipcode Schema",
            "default": "",
            "examples": [
                "123456"
            ],
            "pattern": "^(.*)$"
        },
        "new_user_id": {
            "$id": "#/properties/new_user_id",
            "type": "string",
            "title": "The New_user_id Schema",
            "default": "",
            "examples": [
                "8e4cf7e52892e786c6b397413374ccbf1815c4e9630bc73683ead5108f6ee03f"
            ],
            "pattern": "^[a-f\\d]{64}$"
        }
    }
}
