{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/appyway/json-schema/appyway-entitlement-type-iread-only-collection-ok-response-schema.json",
  "title": "EntitlementTypeIReadOnlyCollectionOkResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/appyway-entitlementtypes-api-openapi.yml#/components/schemas/EntitlementTypeIReadOnlyCollectionOkResponse",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean",
      "readOnly": true
    },
    "result": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/EntitlementType"
      }
    }
  },
  "additionalProperties": false,
  "$defs": {
    "EntitlementType": {
      "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."
        },
        "restrictionTypeIds": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "integer",
            "format": "int32"
          },
          "description": "Indicates the restriction types that this entitlement can apply to"
        },
        "applicableExemptionTypeIds": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "integer",
            "format": "int32"
          },
          "description": "Indicates the exemption types that can apply to this entitlement"
        },
        "hasTariff": {
          "type": "boolean",
          "description": "Indicates whether this entitlement needs a tariff"
        },
        "restrictionTypeLegalNames": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/RestrictionTypeLegalName"
          },
          "description": "Indicates the legal names of the restriction type that this entitlement can apply to"
        }
      },
      "additionalProperties": false,
      "description": "Indicates the condition on which availability of an OSP depends"
    },
    "RestrictionTypeLegalName": {
      "type": "object",
      "properties": {
        "restrictionTypeId": {
          "type": "integer",
          "format": "int32"
        },
        "legalName": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    }
  }
}