{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/eightfold-ai/json-schema/eightfold-ai-external-jierole-schema-schema.json",
  "title": "ExternalJIERoleSchema",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/eightfold-ai-jie-api-openapi.yml#/components/schemas/ExternalJIERoleSchema",
  "type": "object",
  "properties": {
    "externalId": {
      "type": [
        "string",
        "null"
      ],
      "description": "external role id for a 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"
      }
    },
    "experience": {
      "description": "preferred experience for the role",
      "allOf": [
        {
          "$ref": "#/$defs/PreferredExperience"
        }
      ]
    },
    "idealCandidateUrls": {
      "type": [
        "array",
        "null"
      ],
      "description": "LinkedIN URL's of preferred/ideal candidates for the role",
      "items": {
        "type": "string"
      }
    },
    "education": {
      "description": "preferred education for the role",
      "allOf": [
        {
          "$ref": "#/$defs/PreferredEducation"
        }
      ]
    },
    "calibrationNotes": {
      "type": [
        "string",
        "null"
      ],
      "description": "calibration Notes for a role"
    },
    "roleDescription": {
      "type": [
        "string",
        "null"
      ],
      "description": "description of the role"
    },
    "rmUserGroups": {
      "readOnly": true,
      "description": "RM user groups associated with the role.",
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/RmUserGroup"
      }
    },
    "idealCandidates": {
      "type": [
        "array",
        "null"
      ],
      "description": "EF profile ids of preferred/ideal candidates for the role",
      "items": {
        "type": "string"
      }
    },
    "associatedTags": {
      "description": "associated tags with the role, these tags are specific to a role and are generally filled in with a unique tag value. Only pre-configured tags in role_library_config:integration_config:configuration_tags are allowed",
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/RoleTagSchema"
      }
    },
    "approvalStatus": {
      "type": [
        "string",
        "null"
      ],
      "description": "approval status of role, can be one of ['approved', 'unapproved']"
    },
    "locations": {
      "type": [
        "array",
        "null"
      ],
      "description": "preferred locations for the role",
      "items": {
        "type": "string"
      }
    },
    "archivalStatus": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "is archival of role"
    },
    "title": {
      "type": "string",
      "description": "title of the role"
    },
    "displayTags": {
      "description": "display tags of the role. They may or may not be unique to a role. Only pre-configured tags in role_library_config:integration_config:display_tags are allowed",
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/RoleTagSchema"
      }
    }
  },
  "required": [
    "title"
  ],
  "$defs": {
    "GraduationYear": {
      "type": "object",
      "properties": {
        "graduationEndYear": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "description": "end year of graduation"
        },
        "graduationStartYear": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "description": "Start year of graduation"
        }
      }
    },
    "Preference": {
      "type": "object",
      "properties": {
        "preferenceType": {
          "type": [
            "string",
            "null"
          ],
          "description": "preference Type for value, can only be one of ['Preferred', 'Required', 'Excluded']"
        },
        "value": {
          "type": [
            "string",
            "null"
          ],
          "description": "Value/Name of the attribute"
        }
      }
    },
    "PreferredEducation": {
      "type": "object",
      "properties": {
        "graduationYear": {
          "description": "preferred gradulation year for a role",
          "allOf": [
            {
              "$ref": "#/$defs/GraduationYear"
            }
          ]
        },
        "schools": {
          "description": "preferred schools for a role",
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/Preference"
          }
        },
        "degreeMajors": {
          "type": [
            "array",
            "null"
          ],
          "description": "degree majors for a role. Values for degree majors can only be the external_id of the degree major.",
          "items": {
            "type": "string"
          }
        },
        "certifications": {
          "type": [
            "array",
            "null"
          ],
          "description": "certifications for a role. Values for certifications can only be the external_id of the certification.",
          "items": {
            "type": "string"
          }
        },
        "degrees": {
          "type": [
            "array",
            "null"
          ],
          "description": "preferred degrees for a role. Values for degrees can only be one of 'display' values of education_levels in calibration config in admin console.",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "PreferredExperience": {
      "type": "object",
      "properties": {
        "preferredYearsOfExperience": {
          "description": "preferred years of experience for a role",
          "allOf": [
            {
              "$ref": "#/$defs/PreferredYearsOfExperience"
            }
          ]
        },
        "companies": {
          "description": "preferred companies for a role",
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/Preference"
          }
        },
        "seniorities": {
          "type": [
            "array",
            "null"
          ],
          "description": "preferred seniorities for a role. Values for seniorities can only be one of 'display' values of seniority_levels in calibration config in admin console.",
          "items": {
            "type": "string"
          }
        },
        "jobTitles": {
          "description": "preferred job titles for a role",
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/Preference"
          }
        }
      }
    },
    "PreferredYearsOfExperience": {
      "type": "object",
      "properties": {
        "typeOfExperience": {
          "type": [
            "string",
            "null"
          ],
          "description": "Type of experience, can only be one of 'total', 'relevant'"
        },
        "maxExperience": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "description": "preferred maximum experience titles for a role"
        },
        "minExperience": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "description": "preferred minimum experience titles for a role"
        }
      }
    },
    "RmUserGroup": {
      "type": "object",
      "properties": {
        "userGroupId": {
          "type": [
            "string",
            "null"
          ],
          "description": "Unique identifier for the user group"
        }
      }
    },
    "RoleTagSchema": {
      "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"
        }
      }
    }
  }
}