{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.webgamegame.win/api/world/v1/state.schema.json",
  "title": "Web Game Game Official World State",
  "type": "object",
  "required": [
    "schema_version",
    "type",
    "canonical_url",
    "release",
    "authority",
    "record_semantics",
    "current",
    "retrieval",
    "integrity"
  ],
  "properties": {
    "schema_version": {
      "const": "1.0"
    },
    "type": {
      "const": "OfficialWorldState"
    },
    "canonical_url": {
      "type": "string",
      "format": "uri"
    },
    "release": {
      "type": "object",
      "required": [
        "id",
        "edition_id",
        "published_at",
        "data_as_of",
        "languages"
      ],
      "properties": {
        "id": {
          "type": "string",
          "pattern": "^daily-\\d{4}-\\d{2}-\\d{2}-[a-f0-9]{16}$"
        },
        "edition_id": {
          "type": "string",
          "format": "date"
        },
        "published_at": {
          "type": "string",
          "format": "date-time"
        },
        "data_as_of": {
          "type": "string",
          "format": "date"
        },
        "languages": {
          "type": "array",
          "minItems": 4,
          "uniqueItems": true,
          "items": {
            "enum": [
              "en",
              "tr",
              "ar",
              "fa"
            ]
          }
        }
      }
    },
    "authority": {
      "type": "object"
    },
    "record_semantics": {
      "type": "object"
    },
    "current": {
      "type": "object"
    },
    "retrieval": {
      "type": "object"
    },
    "integrity": {
      "type": "object"
    }
  }
}
