{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/eightfold-ai/json-schema/eightfold-ai-external-role-schema-schema.json",
  "title": "ExternalRoleSchema",
  "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/ExternalRoleSchema",
  "type": "object",
  "properties": {
    "calibration": {
      "writeOnly": true,
      "description": "Calibration of the role; Note: you can provide with only calibration or skill proficiencies",
      "allOf": [
        {
          "$ref": "#/$defs/CalibrationDataSchema"
        }
      ]
    },
    "roleSource": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true,
      "description": "source of the role"
    },
    "id": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true,
      "description": "id of the role"
    },
    "skillProficiencies": {
      "description": "skill proficiencies of the role",
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/SkillProficiency"
      }
    },
    "associatedTags": {
      "description": "associated tags with the role",
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/RoleTag"
      }
    },
    "parentRoleId": {
      "type": [
        "string",
        "null"
      ],
      "description": "parent role id of the role"
    },
    "childrenRoleId": {
      "type": [
        "array",
        "null"
      ],
      "description": "children of role",
      "items": {
        "type": "string"
      }
    },
    "title": {
      "type": [
        "string",
        "null"
      ],
      "description": "title of the role"
    },
    "displayTags": {
      "description": "display tags of the role",
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/RoleTag"
      }
    }
  },
  "$defs": {
    "CalibrationDataSchema": {
      "type": "object",
      "properties": {
        "flags": {
          "type": [
            "array",
            "null"
          ],
          "description": "flags",
          "items": {
            "type": "string"
          }
        },
        "graduationYear": {
          "type": [
            "string",
            "null"
          ],
          "description": "graduationYear"
        },
        "workCategories": {
          "type": [
            "array",
            "null"
          ],
          "description": "workCategories",
          "items": {
            "type": "string"
          }
        },
        "skills": {
          "type": [
            "array",
            "null"
          ],
          "description": "skills",
          "items": {
            "type": "string"
          }
        },
        "diversity": {
          "type": [
            "array",
            "null"
          ],
          "description": "diversity",
          "items": {
            "type": "string"
          }
        },
        "idealCandidates": {
          "type": [
            "array",
            "null"
          ],
          "description": "ideal_candidates",
          "items": {
            "type": "string"
          }
        },
        "companies": {
          "type": [
            "array",
            "null"
          ],
          "description": "companies",
          "items": {
            "type": "string"
          }
        },
        "titles": {
          "type": [
            "array",
            "null"
          ],
          "description": "titles",
          "items": {
            "type": "string"
          }
        },
        "educationLevel": {
          "type": [
            "array",
            "null"
          ],
          "description": "different education levels",
          "items": {
            "type": "string"
          }
        },
        "relocation": {
          "type": [
            "array",
            "null"
          ],
          "description": "relocation",
          "items": {
            "type": "string"
          }
        },
        "seniorities": {
          "type": [
            "array",
            "null"
          ],
          "description": "seniorities",
          "items": {
            "type": "string"
          }
        },
        "maxExperience": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "description": "maxExperience"
        },
        "schools": {
          "type": [
            "array",
            "null"
          ],
          "description": "schools",
          "items": {
            "type": "string"
          }
        },
        "skillProficiencies": {
          "writeOnly": true,
          "description": "skill proficiencies of the role",
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/SkillProficiency"
          }
        },
        "idealCandidateUrls": {
          "type": [
            "array",
            "null"
          ],
          "description": "idealCandidatesUrls",
          "items": {
            "type": "string"
          }
        },
        "minExperience": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "description": "minExperience"
        },
        "notes": {
          "type": [
            "string",
            "null"
          ],
          "description": "notes"
        },
        "locations": {
          "type": [
            "array",
            "null"
          ],
          "description": "locations",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "RoleTag": {
      "type": "object",
      "properties": {
        "tagValues": {
          "type": [
            "array",
            "null"
          ],
          "description": "value of the tag",
          "items": {
            "type": "string"
          }
        },
        "tagName": {
          "type": [
            "string",
            "null"
          ],
          "description": "name of the tag"
        }
      }
    },
    "SkillGroupList": {
      "type": "object",
      "properties": {
        "proficiency": {
          "type": [
            "number",
            "null"
          ],
          "format": "float",
          "description": "group proficiency of the skill group"
        },
        "groupName": {
          "type": [
            "string",
            "null"
          ],
          "description": "name of the skill group"
        },
        "level": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true,
          "description": "level of the role"
        },
        "skillCategory": {
          "type": [
            "string",
            "null"
          ],
          "description": "skill category of the skill group"
        }
      }
    },
    "SkillProficiency": {
      "type": "object",
      "properties": {
        "proficiency": {
          "type": [
            "number",
            "null"
          ],
          "format": "float",
          "description": "proficiency of the role"
        },
        "skillGroupList": {
          "description": "skill group list of a role",
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/SkillGroupList"
          }
        },
        "level": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true,
          "description": "level of the role"
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "description": "name of the role"
        }
      }
    }
  }
}