{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/appyway/json-schema/appyway-region-iread-only-collection-ok-response-schema.json",
  "title": "RegionIReadOnlyCollectionOkResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/appyway-regions-api-openapi.yml#/components/schemas/RegionIReadOnlyCollectionOkResponse",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean",
      "readOnly": true
    },
    "result": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/Region"
      }
    }
  },
  "additionalProperties": false,
  "$defs": {
    "Event": {
      "type": "object",
      "properties": {
        "name": {
          "type": [
            "string",
            "null"
          ],
          "description": "Name of the event"
        },
        "date": {
          "type": "string",
          "description": "Date when the event takes place"
        },
        "start": {
          "type": [
            "string",
            "null"
          ],
          "description": "Start time of the event"
        },
        "end": {
          "type": [
            "string",
            "null"
          ],
          "description": "End time of the event"
        }
      },
      "additionalProperties": false
    },
    "Region": {
      "type": "object",
      "properties": {
        "id": {
          "type": [
            "string",
            "null"
          ],
          "description": "Unique identifier of the region"
        },
        "countryId": {
          "type": [
            "string",
            "null"
          ],
          "description": "Id of the Country this region belongs to"
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "description": "Name of the region"
        },
        "venues": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/Venue"
          },
          "description": "A list of venues that are available in the region. Venues are linked to zones and will affect the operating hours on dates where there's an event at the venue"
        }
      },
      "additionalProperties": false
    },
    "Venue": {
      "type": "object",
      "properties": {
        "id": {
          "type": [
            "string",
            "null"
          ],
          "description": "Unique identifier of the region venue"
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "description": "Name of the venue"
        },
        "eventsMustSupplyHours": {
          "type": "boolean",
          "description": "Indicates whether an event at this venue supplies the hours or whether it should take the hours from the applicable operating hours"
        },
        "events": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/Event"
          },
          "description": "List of events that will take place at this venue"
        }
      },
      "additionalProperties": false
    }
  }
}