{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/appyway/json-schema/appyway-authority-list-result-schema.json",
  "title": "AuthorityListResult",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/appyway-authorities-api-openapi.yml#/components/schemas/AuthorityListResult",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean",
      "readOnly": true
    },
    "data": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/Authority_2"
      }
    }
  },
  "additionalProperties": false,
  "$defs": {
    "Authority_2": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "regionId": {
          "type": [
            "string",
            "null"
          ]
        },
        "countryId": {
          "type": [
            "string",
            "null"
          ]
        },
        "authoritySlugs": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "ordnanceSurvey": {
          "$ref": "#/$defs/OrdnanceSurvey"
        },
        "hasFreeParkingOutsideZone": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "timeZoneId": {
          "type": [
            "string",
            "null"
          ],
          "description": "IANA time zone ID."
        },
        "privacyPolicyUrl": {
          "type": [
            "string",
            "null"
          ]
        },
        "paymentProviderId": {
          "type": [
            "string",
            "null"
          ],
          "description": "The default Payment ProviderId for the authority. See the Reference API for more information.",
          "format": "uuid"
        },
        "centroid": {
          "$ref": "#/$defs/LatLng"
        },
        "boundingBox": {
          "$ref": "#/$defs/BoundingBox"
        },
        "fallbackZoneId": {
          "type": "string",
          "format": "uuid"
        },
        "notes": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/NoteCms"
          }
        },
        "tags": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "authorityType": {
          "type": "integer",
          "format": "int32"
        },
        "legalName": {
          "type": [
            "string",
            "null"
          ]
        },
        "capabilities": {
          "$ref": "#/$defs/Capabilities"
        },
        "capabilitiesState": {
          "$ref": "#/$defs/CapabilitiesState"
        },
        "highwayAuthority": {
          "type": [
            "string",
            "null"
          ]
        },
        "dataQuality": {
          "$ref": "#/$defs/DataQuality"
        },
        "lastTmoUpdate": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "reviewTerminalIds": {
          "type": "boolean"
        }
      },
      "additionalProperties": false
    },
    "BoundingBox": {
      "type": "object",
      "properties": {
        "topLeft": {
          "$ref": "#/$defs/LatLng"
        },
        "bottomRight": {
          "$ref": "#/$defs/LatLng"
        }
      },
      "additionalProperties": false
    },
    "Capabilities": {
      "type": "object",
      "properties": {
        "allowIsPubliclyViewable": {
          "type": "boolean"
        },
        "allowChargePointRequests": {
          "type": "boolean"
        },
        "isVisibleOnPublicConsultation": {
          "type": "boolean"
        },
        "enableSessionRecordingInternal": {
          "type": "boolean"
        },
        "enableSessionRecordingPublic": {
          "type": "boolean"
        },
        "inMaintenanceMode": {
          "type": "boolean"
        },
        "enableAssets": {
          "type": "boolean"
        }
      },
      "additionalProperties": false
    },
    "CapabilitiesState": {
      "type": "object",
      "properties": {
        "isStaticPubliclyViewable": {
          "type": "boolean"
        },
        "isMovingPubliclyViewable": {
          "type": "boolean"
        },
        "isOffStreetPubliclyViewable": {
          "type": "boolean"
        },
        "acceptChargePointRequests": {
          "type": "boolean"
        },
        "hideTariffsOnMapSchedules": {
          "type": "boolean"
        },
        "hideTariffsOnStreets": {
          "type": "boolean"
        },
        "hideRestrictedSpeedLimitsOnStreets": {
          "type": "boolean"
        }
      },
      "additionalProperties": false
    },
    "DataQuality": {
      "enum": [
        1,
        2,
        3,
        4
      ],
      "type": "integer",
      "description": "\n\n*HdPlus (1)\n*Hd (2)\n*Md (3)\n*Sd (4)\n",
      "format": "int32"
    },
    "LatLng": {
      "type": "object",
      "properties": {
        "latitude": {
          "type": "number",
          "format": "double"
        },
        "longitude": {
          "type": "number",
          "format": "double"
        }
      },
      "additionalProperties": false
    },
    "NoteCms": {
      "type": "object",
      "properties": {
        "noteVisibilityTypeId": {
          "type": "integer",
          "description": "See the Reference API for more information on types of visibility for notes.",
          "format": "int32"
        },
        "appliesToRestrictionTypeIds": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "integer",
            "format": "int32"
          }
        },
        "priority": {
          "type": "integer",
          "format": "int32"
        },
        "title": {
          "type": [
            "string",
            "null"
          ]
        },
        "message": {
          "type": [
            "string",
            "null"
          ]
        },
        "url": {
          "type": [
            "string",
            "null"
          ]
        },
        "telephone": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "OrdnanceSurvey": {
      "type": "object",
      "properties": {
        "apiKey": {
          "type": [
            "string",
            "null"
          ]
        },
        "license": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    }
  }
}