{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/knossot-org/json-schema/knossot-org-regions-schema.json",
  "title": "Regions",
  "x-generated": "2026-11-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/knossot-org-openapi.json#/components/schemas/Regions",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "regions",
    "categories",
    "window",
    "picks"
  ],
  "properties": {
    "regions": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "label",
          "time_zone",
          "towns"
        ],
        "properties": {
          "id": {
            "type": "string",
            "enum": [
              "hudson-valley",
              "river",
              "philly",
              "nyc"
            ]
          },
          "label": {
            "type": "string"
          },
          "time_zone": {
            "type": "string"
          },
          "towns": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      }
    },
    "categories": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "label"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "parent": {
            "type": "string"
          }
        }
      }
    },
    "window": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "max_days"
      ],
      "properties": {
        "max_days": {
          "type": "integer"
        }
      }
    },
    "picks": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "max",
        "free_max"
      ],
      "properties": {
        "max": {
          "type": "integer"
        },
        "free_max": {
          "type": "integer"
        }
      }
    }
  }
}