{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/appyway/json-schema/appyway-restriction-type-iread-only-collection-ok-response-schema.json",
  "title": "RestrictionTypeIReadOnlyCollectionOkResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/appyway-offstreetrestrictiontypes-api-openapi.yml#/components/schemas/RestrictionTypeIReadOnlyCollectionOkResponse",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean",
      "readOnly": true
    },
    "result": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/RestrictionType"
      }
    }
  },
  "additionalProperties": false,
  "$defs": {
    "RestrictionType": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "description": "Unique identifier",
          "format": "int32"
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "description": "Name"
        },
        "description": {
          "type": [
            "string",
            "null"
          ],
          "description": "Description"
        },
        "code": {
          "type": [
            "string",
            "null"
          ],
          "description": "Shorthand code that represents this entitlement."
        },
        "canHaveNoLoadingRules": {
          "type": "boolean",
          "description": "Indicates whether there could be a loading rule attached to this restriction type"
        },
        "canHaveTariff": {
          "type": "boolean",
          "description": "Indicates whether there could be a tariff attached to this restriction type"
        },
        "canHaveEmptyEntitlements": {
          "type": "boolean",
          "description": "Indicates whether there could be empty entitlements attached to this restriction type"
        },
        "defaultWidth": {
          "type": "number",
          "description": "Indicates the default width of this restriction type in meters.",
          "format": "double"
        },
        "isTroItem": {
          "type": "boolean",
          "description": "Indicates that this restriction type is classed as part of Traffic Regulation Orders."
        },
        "legalName": {
          "type": [
            "string",
            "null"
          ],
          "description": "The restriction type's alternative name used on legal traffic order documents."
        },
        "hasBayCount": {
          "type": "boolean"
        }
      },
      "additionalProperties": false
    }
  }
}