{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/eightfold-ai/json-schema/eightfold-ai-career-planner-role-schema-schema.json",
  "title": "CareerPlannerRoleSchema",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/eightfold-ai-careerhub-api-openapi.yml#/components/schemas/CareerPlannerRoleSchema",
  "type": "object",
  "properties": {
    "role": {
      "type": [
        "string",
        "null"
      ],
      "description": "A name of the role such as Software Engineer"
    },
    "salary": {
      "readOnly": true,
      "description": "Salary data of the current role",
      "allOf": [
        {
          "$ref": "#/$defs/CareerPlannerSalarySchema"
        }
      ]
    },
    "isTrending": {
      "type": [
        "boolean",
        "null"
      ],
      "readOnly": true,
      "description": "A flag indicating that the role is trending"
    }
  },
  "required": [
    "role"
  ],
  "$defs": {
    "CareerPlannerSalarySchema": {
      "type": "object",
      "properties": {
        "count": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "readOnly": true,
          "description": "The number of salary reported"
        },
        "value": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "readOnly": true,
          "description": "Salary value"
        }
      }
    }
  }
}