{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/karbonhq/json-schema/karbonhq-get-roles-schema.json",
  "title": "GetRoles",
  "description": "The API response containing a list of Roles in Karbon.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/karbonhq-users-api-openapi.yml#/components/schemas/GetRoles",
  "type": "object",
  "properties": {
    "@odata.context": {
      "type": "string"
    },
    "@odata.count": {
      "type": "integer"
    },
    "@odata.nextLink": {
      "type": "string"
    },
    "value": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Role"
      }
    }
  },
  "$defs": {
    "Role": {
      "type": "object",
      "description": "A Karbon Role (internally an Actor in the Tenant pillar).",
      "required": [
        "Key",
        "Name"
      ],
      "properties": {
        "Key": {
          "type": "string",
          "description": "A Karbon-generated unique identifier for the Role."
        },
        "Name": {
          "type": "string",
          "description": "The name of the Role."
        }
      }
    }
  }
}