{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://whatsdo.com/schemas/aesthetics-wellness-release-1.0.json",
  "title": "WhatsDo Aesthetics & Wellness release",
  "type": "object",
  "required": [
    "spec_version",
    "snapshot_id",
    "generated_at",
    "coverage_label",
    "locations"
  ],
  "properties": {
    "spec_version": {
      "const": "1.0"
    },
    "snapshot_id": {
      "type": "string"
    },
    "generated_at": {
      "type": "string",
      "format": "date-time"
    },
    "coverage_label": {
      "const": "selected Bay Area locations"
    },
    "license": {
      "type": "object"
    },
    "source_policy": {
      "type": "object"
    },
    "locations": {
      "type": "array",
      "items": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "$id": "https://whatsdo.com/schemas/aesthetics-wellness-location-1.0.json",
        "title": "WhatsDo Aesthetics & Wellness location",
        "type": "object",
        "required": [
          "location_id",
          "business_id",
          "name",
          "business_types",
          "area",
          "address",
          "city",
          "official_url",
          "services",
          "booking",
          "evidence",
          "observed_at"
        ],
        "properties": {
          "location_id": {
            "type": "string",
            "pattern": "^loc_"
          },
          "business_id": {
            "type": "string",
            "pattern": "^biz_"
          },
          "name": {
            "type": "string"
          },
          "business_types": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "area": {
            "type": "string"
          },
          "address": {
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "region": {
            "type": [
              "string",
              "null"
            ]
          },
          "postal_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "coordinates": {
            "type": [
              "object",
              "null"
            ]
          },
          "official_url": {
            "type": "string",
            "format": "uri"
          },
          "phone": {
            "type": [
              "string",
              "null"
            ]
          },
          "google_place_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "osm_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "services": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "booking": {
            "type": "object"
          },
          "hours": {
            "type": "object"
          },
          "attributes": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "actionability": {
            "type": "object"
          },
          "evidence": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "observed_at": {
            "type": "string",
            "format": "date-time"
          },
          "provenance": {
            "type": [
              "object",
              "null"
            ]
          }
        }
      }
    }
  }
}
