{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://objectsgrid.com/.well-known/objects-catalog/OpeningHoursSpecification/v1/schema.json",
  "title": "OpeningHoursSpecification",
  "description": "Objects Grid OpeningHoursSpecification Object. Modeled in compliance with https://schema.org/OpeningHoursSpecification.",
  "type": "object",
  "properties": {
      "at_type": {
        "description": "The object type",
        "anyOf": [
            { "type":"string", "enum":["OpeningHoursSpecification"] },
            { "type":"null" }
        ]
      },
      "closes": {
        "type": "string",
        "pattern": "^([01]\\d|2[0-3]):?([0-5]\\d):?([0-5]\\d)$"
      },
      "dayOfWeek": {
        "type": "array",
        "items": {
            "type": "string",
            "enum": [
              "https://schema.org/Monday","https://schema.org/Tuesday","https://schema.org/Wednesday","https://schema.org/Thursday","https://schema.org/Friday","https://schema.org/Saturday","https://schema.org/Sunday","https://schema.org/PublicHolidays"
            ]
        },
        "minItems": 1
      },
      "opens": {
        "type": "string",
        "pattern": "^([01]\\d|2[0-3]):?([0-5]\\d):?([0-5]\\d)$"
      },
    "validFrom": {
          "type": ["string","null"],
          "format": "date-time"
    },
      "validThrough": {
              "type": ["string","null"],
              "format": "date-time"
      }
  },
  "required": ["dayOfWeek","opens","closes"]
}