{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/appyway/json-schema/appyway-change-region-venues-command-schema.json",
  "title": "ChangeRegionVenuesCommand",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/appyway-regions-api-openapi.yml#/components/schemas/ChangeRegionVenuesCommand",
  "required": [
    "id",
    "venues"
  ],
  "type": "object",
  "properties": {
    "id": {
      "maxLength": 36,
      "minLength": 1,
      "type": "string",
      "description": "Unique identifier of the region"
    },
    "venues": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Venue"
      }
    }
  },
  "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
    },
    "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
    }
  }
}