{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/gloat/json-schema/gloat-candidacy-outbound-object-get-schema.json",
  "title": "Candidacy",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/gloat-candidacy-api-openapi.yml#/components/schemas/candidacy_outbound_object_get",
  "type": "object",
  "properties": {
    "candidacy_id": {
      "type": "string"
    },
    "external_id": {
      "type": "string"
    },
    "job_id": {
      "type": "string"
    },
    "user_id": {
      "type": "string"
    },
    "candidacy_status": {
      "$ref": "#/$defs/candidacy_status_object_get"
    },
    "user_data": {
      "$ref": "#/$defs/basic_user_object"
    }
  },
  "$defs": {
    "basic_user_object": {
      "type": "object",
      "title": "Basic User Data",
      "required": [
        "first_name",
        "last_name",
        "email"
      ],
      "properties": {
        "first_name": {
          "type": "string"
        },
        "last_name": {
          "type": "string"
        },
        "email": {
          "type": "string"
        }
      }
    },
    "candidacy_status": {
      "type": "string",
      "title": "Candidacy Status",
      "enum": [
        "apply",
        "match",
        "reject",
        "invited-to-interview",
        "interview",
        "on-hold",
        "advanced",
        "phone-approach",
        "email-approach",
        "offer",
        "hired",
        "withdrew"
      ]
    },
    "candidacy_status_object_get": {
      "type": "object",
      "title": "Candidacy Status Object",
      "properties": {
        "status": {
          "$ref": "#/$defs/candidacy_status"
        }
      }
    }
  }
}