{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/acadia/refs/heads/main/json-schema/acadia-role-schema.json",
  "title": "Role",
  "description": "A job role with training requirements",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Role identifier",
      "example": "role-ops-001"
    },
    "name": {
      "type": "string",
      "description": "Role name",
      "example": "Machine Operator"
    },
    "department": {
      "type": "string",
      "description": "Department the role belongs to",
      "example": "Production"
    },
    "requiredTrainings": {
      "type": "integer",
      "description": "Number of required training completions for the role",
      "example": 12
    },
    "completionRate": {
      "type": "integer",
      "description": "Average completion rate across employees in this role",
      "example": 78
    }
  }
}