{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nexus/json-schema/nexus-role-xoresponse-schema.json",
  "title": "RoleXOResponse",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nexus-security-management-roles-api-openapi.yml#/components/schemas/RoleXOResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "The id of the role."
    },
    "source": {
      "type": "string",
      "description": "The user source which is the origin of this role."
    },
    "name": {
      "type": "string",
      "description": "The name of the role."
    },
    "description": {
      "type": "string",
      "description": "The description of this role."
    },
    "readOnly": {
      "type": "boolean",
      "description": "Indicates whether the role can be changed. The system will ignore any supplied external values."
    },
    "privileges": {
      "uniqueItems": true,
      "type": "array",
      "description": "The list of privileges assigned to this role.",
      "items": {
        "type": "string",
        "description": "The list of privileges assigned to this role."
      }
    },
    "roles": {
      "uniqueItems": true,
      "type": "array",
      "description": "The list of roles assigned to this role.",
      "items": {
        "type": "string",
        "description": "The list of roles assigned to this role."
      }
    }
  }
}