{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/gloat/json-schema/gloat-rbac-role-schema.json",
  "title": "rbac_role",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/gloat-rbac-groups-roles-api-openapi.yml#/components/schemas/rbac_role",
  "type": "object",
  "properties": {
    "id": {
      "type": "number"
    },
    "name": {
      "type": "string"
    },
    "categories": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "admin"
        ]
      }
    },
    "permissions": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "Permission type:\n * `A` - Authorized (Read & Write)\n * `R` - Read\n * `W` - Write"
          },
          "name": {
            "type": "string"
          }
        }
      }
    },
    "description": {
      "type": "string"
    }
  }
}