{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/red-hat-ansible-automation-platform/json-schema/red-hat-ansible-automation-platform-paginated-dabpermission-response-list-schema.json",
  "title": "PaginatedDABPermissionResponseList",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/red-hat-ansible-automation-platform-api-service-index-role-permissions-api-openapi.yml#/components/schemas/PaginatedDABPermissionResponseList",
  "type": "object",
  "required": [
    "count",
    "results"
  ],
  "properties": {
    "count": {
      "type": "integer"
    },
    "next": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "previous": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "results": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DABPermissionResponse"
      }
    }
  },
  "$defs": {
    "DABPermissionResponse": {
      "type": "object",
      "properties": {
        "api_slug": {
          "type": "string",
          "description": "String to use for references to this type from other models in the API.",
          "maxLength": 201
        },
        "codename": {
          "type": "string",
          "description": "A codename for the permission, in the format {action}_{model_name}. Where action is typically the view set action (view/list/etc) from Django rest framework.",
          "maxLength": 100
        },
        "content_type": {
          "type": "string",
          "description": "String to use for references to this type from other models in the API.",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "description": "The name of this permission.",
          "maxLength": 255
        }
      },
      "required": [
        "codename",
        "name"
      ]
    }
  }
}