{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/appyway/json-schema/appyway-zone-ok-response-schema.json",
  "title": "ZoneOkResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/appyway-zones-api-openapi.yml#/components/schemas/ZoneOkResponse",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean",
      "readOnly": true
    },
    "result": {
      "$ref": "#/$defs/Zone"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "Crs": {
      "type": "object",
      "properties": {
        "type": {
          "type": [
            "string",
            "null"
          ]
        },
        "properties": {
          "$ref": "#/$defs/CrsProperties"
        }
      },
      "additionalProperties": false
    },
    "CrsProperties": {
      "type": "object",
      "properties": {
        "name": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "Geometry": {
      "type": "object",
      "properties": {
        "type": {
          "type": [
            "string",
            "null"
          ]
        },
        "crs": {
          "$ref": "#/$defs/Crs"
        }
      },
      "additionalProperties": false
    },
    "GeometryCollection": {
      "type": "object",
      "properties": {
        "type": {
          "type": [
            "string",
            "null"
          ]
        },
        "crs": {
          "$ref": "#/$defs/Crs"
        },
        "geometries": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/Geometry"
          }
        }
      },
      "additionalProperties": false
    },
    "MapEntityType": {
      "enum": [
        1,
        2,
        3,
        4
      ],
      "type": "integer",
      "description": "Enumeration for the different types of Map Entity - objects returned by the API that can be drawn on a map.\n\n*OnStreet (1) - An on-street parking area\n*Carpark (2) - An off-street parking facility (car park) including surface and multi-storey car parks.\n*Zone (3) - A zone is an area defined by the local authority that acts as a container for a set of On-Street and Car park entities.\nA zone may define common parking rules that are applicable generally across parts of the kerb (e.g. Single Yellow Lines) and may\ndefine rules parking entities that can be overridden by individual entities.\n*Authority (4) - Defines the area controlled by a particular local authority. Authorities may contain zones and may also contain parking entities directly.\n",
      "format": "int32"
    },
    "Note": {
      "type": "object",
      "properties": {
        "message": {
          "type": [
            "string",
            "null"
          ],
          "description": "The text of the note"
        }
      },
      "additionalProperties": false,
      "description": "Models a note that can be attached to an entity"
    },
    "Zone": {
      "type": "object",
      "properties": {
        "entityId": {
          "type": [
            "string",
            "null"
          ],
          "description": "Unique identifier for this entity"
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "description": "User-readable name for this entity"
        },
        "eTag": {
          "type": [
            "string",
            "null"
          ],
          "description": "ETag for the entity. The ETag is specific to each version of this entity and changes whenever the entity data changes. Clients can\nsend the eTags of cached entities to the server when requesting data and the server can return only entities for which the current ETag does\nnot match the requested tag - i.e. just those entities that have changed."
        },
        "geometry": {
          "$ref": "#/$defs/GeometryCollection"
        },
        "notes": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/Note"
          },
          "description": "Any special note associated with this zone"
        },
        "authorityId": {
          "type": [
            "string",
            "null"
          ],
          "description": "The authority containing this zone"
        },
        "zoneType": {
          "$ref": "#/$defs/ZoneType"
        },
        "venueId": {
          "type": [
            "string",
            "null"
          ],
          "description": "The venue id"
        },
        "entityType": {
          "$ref": "#/$defs/MapEntityType"
        }
      },
      "additionalProperties": false,
      "description": "A zone is an area defined by the local authority that acts as a container for a set of OnStreet and CarPark entities.\nA zone may define common parking rules that are applicable generally across parts of the kerb (e.g. Single Yellow Lines) and may\ndefine rules parking entities that can be overridden by individual entities."
    },
    "ZoneType": {
      "enum": [
        1,
        2,
        3,
        4,
        5,
        7,
        8,
        9,
        10
      ],
      "type": "integer",
      "description": "Different types of Zone\n\n*ControlledParkingZone (1) - An ordinary zone in which authority-defined restrictions are in place.\n*RestrictedParkingZone (2) - A zone in which parking is never allowed.\n*FreeParking (3) - A zone in which parking is always allowed.\n*Private (4) - A region not under authority control (such as a shopping centre).\n*CongestionCharge (5) - A region in which congestion charges apply.\n*Container (7) - A zone that exists to contain On Street Parking entities that don't really belong in a zone.\n*ResidentsParkingScheme (8) - A zone in which a resident's permit parking scheme applies\n*PermitParkingArea (9) - Area of residential streets where parking is reserved for permit holders Gn++n++ a sign at the entrance to the street will show that parking is for permit holders only. \nPPAs may not have signs or bay markings within them. Sometimes there may be small plates to remind motorists of the controls in place\n*PedestrianZone (10) - Pedestrian area where no parking is allowed\n",
      "format": "int32"
    }
  }
}