{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nexus/json-schema/nexus-role-xorequest-schema.json",
  "title": "RoleXORequest",
  "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/RoleXORequest",
  "required": [
    "id",
    "name"
  ],
  "type": "object",
  "properties": {
    "id": {
      "minLength": 1,
      "type": "string",
      "description": "The id of the role."
    },
    "name": {
      "minLength": 1,
      "type": "string",
      "description": "The name of the role."
    },
    "description": {
      "type": "string",
      "description": "The description of this role."
    },
    "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."
      }
    }
  }
}