{
    "format": "txt",
    "delimiter": "#*#",
    "has_metadata": true,
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$id": "http://example.com/root.json",
    "type": "object",
    "title": "Amazon Music Activity Demographic Schema",
    "required": [
      "customerId"

    ],
    "properties": {
      "reportingStartDate": {
        "$id": "#/properties/reportingStartDate",
            "type": "string",
            "title": "reportingStartDate",
            "default": "",
            "examples": [
                "20130610"
            ],
            "pattern": "^\\d{4}\\d{2}\\d{2}$"
      },
      "customerId": {
        "$id": "#/properties/customerId",
            "type": "string",
            "title": "customerId",
            "examples": [
                "User56935"
            ],
            "pattern": "^.{3,}$"
      },
      "country": {
        "$id": "#/properties/country",
            "type": "string",
            "title": "country",
            "examples": [
                "FR"
            ],
            "pattern": "^[A-Z]{2}$"
      },
      "location": {
        "$id": "#/properties/location",
            "type": "string",
            "title": "location",
            "examples": [
                "000"
            ],
            "pattern": "^[A-Za-z0-9]{3}$"
      },
      "cohortMonthOfCurrentStreamingTier": {
        "$id": "#/properties/cohortMonthOfCurrentStreamingTier",
            "type": "string",
            "title": "cohortMonthOfCurrentStreamingTier",
            "examples": [
                "201306"
            ],
            "pattern": "^\\d{4}\\d{2}$"
      },
      "subscriptionProduct": {
        "$id": "#/properties/subscriptionProduct",
            "type": "string",
            "title": "subscriptionProduct",
            "examples": [
                "Paid On-Demand"
            ],
            "pattern": "^[a-zA-Z\\s\\-]*$"
      },
      "subscriptionType": {
        "$id": "#/properties/subscriptionType",
            "type": "string",
            "title": "subscriptionType",
            "examples": [
                "Carrier Bundle"
            ],
            "pattern": "^[a-zA-Z\\s]*$"
      },
      "subscriptionDetail": {
        "$id": "#/properties/subscriptionDetail",
            "type": "string",
            "title": "subscriptionDetail",
            "examples": [
                "Carrier Bundle"
            ],
            "pattern": "^[a-zA-Z\\s]*$"
      },
      "gender": {
        "$id": "#/properties/gender",
            "type": "string",
            "title": "gender",
            "default": "unknown",
            "examples": [
                "M"
            ],
            "pattern": "^M|W|unknown$"
      },
      "birthDate": {
        "$id": "#/properties/birthDate",
            "type": "string",
            "title": "birthDate",
            "examples": [
                "19990701"
            ],
            "pattern": "^\\d{4}\\d{2}\\d{2}$"
      },
      "numberOfTotalPlaylists": {
        "$id": "#/properties/numberOfTotalPlaylists",
            "type": "string",
            "title": "numberOfTotalPlaylists",
            "examples": [
                "37"
            ],
            "pattern": "^\\d*$"
      },
      "numberOfPersonalPlaylists": {
        "$id": "#/properties/numberOfPersonalPlaylists",
            "type": "string",
            "title": "numberOfPersonalPlaylists",
            "examples": [
                "37"
            ],
            "pattern": "^\\d*$"
      },
      "numberOfThirdPartyPlaylists": {
        "$id": "#/properties/numberOfThirdPartyPlaylists",
            "type": "string",
            "title": "numberOfThirdPartyPlaylists",
            "examples": [
                "37"
            ],
            "pattern": "^\\d*$"
      },
      "numberOfSmePlaylists": {
         "$id": "#/properties/numberOfSmePlaylists",
            "type": "string",
            "title": "numberOfSmePlaylists",
            "examples": [
                "37"
            ],
            "pattern": "^\\d*$"
      },
      "numberOfSmeAccountFollows": {
        "$id": "#/properties/numberOfSmeAccountFollows",
            "type": "string",
            "title": "numberOfSmeAccountFollows",
            "examples": [
                "37"
            ],
            "pattern": "^\\d*$"
      },
      "numberOfPromotedPlaylists": {
        "$id": "#/properties/numberOfPromotedPlaylists",
            "type": "string",
            "title": "numberOfPromotedPlaylists",
            "examples": [
                "37"
            ],
            "pattern": "^\\d*$"
      },
      "numberOfTotalTracksInCollection": {
        "$id": "#/properties/numberOfTotalTracksInCollection",
            "type": "string",
            "title": "numberOfTotalTracksInCollection",
            "examples": [
                "37"
            ],
            "pattern": "^\\d*$"
      },
      "numberOfSmeTracksInCollection": {
        "$id": "#/properties/numberOfSmeTracksInCollection",
            "type": "string",
            "title": "numberOfSmeTracksInCollection",
            "examples": [
                "37"
            ],
            "pattern": "^\\d*$"
      }
   }
}
