{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/eightfold-ai/json-schema/eightfold-ai-employee-role-schema-schema.json",
  "title": "EmployeeRoleSchema",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/eightfold-ai-employee-role-api-openapi.yml#/components/schemas/EmployeeRoleSchema",
  "type": "object",
  "properties": {
    "id": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true,
      "description": "Role Id"
    },
    "skillProficiencies": {
      "readOnly": true,
      "description": "Skill Proficiency",
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/SkillProficiency1"
      }
    },
    "band": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true,
      "description": "Job Band"
    },
    "workCategories": {
      "type": [
        "array",
        "null"
      ],
      "readOnly": true,
      "description": "Work Categories",
      "items": {
        "type": "string"
      }
    },
    "roleDescription": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true,
      "description": "Role description"
    },
    "function": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true,
      "description": "Job Function"
    },
    "code": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true,
      "description": "Job code"
    },
    "seniorityLevel": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32",
      "readOnly": true,
      "description": "Seniority level derived from seniorities; null when none is set"
    },
    "educationLevel": {
      "type": [
        "array",
        "null"
      ],
      "readOnly": true,
      "description": "Education Level",
      "items": {
        "type": "string"
      }
    },
    "notes": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true,
      "description": "Notes"
    },
    "skillDescription": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true,
      "description": "Deprecated: use roleDescription. Role description (not skill-related)"
    },
    "titles": {
      "type": [
        "array",
        "null"
      ],
      "readOnly": true,
      "description": "Titles",
      "items": {
        "type": "string"
      }
    },
    "seniorities": {
      "type": [
        "array",
        "null"
      ],
      "readOnly": true,
      "description": "seniorities",
      "items": {
        "type": "string"
      }
    },
    "degrees": {
      "type": [
        "array",
        "null"
      ],
      "readOnly": true,
      "description": "Degrees preferred for the role (same values as educationLevel)",
      "items": {
        "type": "string"
      }
    },
    "jobFamily": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true,
      "description": "Job Family"
    },
    "hiringTitle": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true,
      "description": "Hiring Title"
    }
  },
  "$defs": {
    "SkillProficiency1": {
      "type": "object",
      "properties": {
        "level": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true,
          "description": "Level"
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true,
          "description": "name"
        },
        "proficiency": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true,
          "description": "Proficiency"
        },
        "skillGroupList": {
          "type": [
            "array",
            "null"
          ],
          "readOnly": true,
          "description": "Skill Group List",
          "items": {
            "type": "string"
          }
        },
        "tUpdate": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true,
          "description": "Update Timestamp"
        }
      }
    }
  }
}