{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/red-hat/main/json-schema/red-hat-role-schema.json",
  "title": "Role",
  "description": "A role that can be assigned to users or groups for authorization.",
  "x-generated": "2026-10-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/red-hat-roles-api-openapi.yml#/components/schemas/Role",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "The unique identifier of the role."
    },
    "name": {
      "type": "string",
      "description": "The name of the role."
    },
    "description": {
      "type": "string",
      "description": "A description of the role."
    },
    "composite": {
      "type": "boolean",
      "description": "Whether this is a composite role containing other roles."
    },
    "clientRole": {
      "type": "boolean",
      "description": "Whether this is a client-level role."
    }
  }
}