{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/JobApplication",
  "title": "JobApplication",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "example": "abc123"
    },
    "descriptor": {
      "type": "string",
      "example": "example_value"
    },
    "candidate": {
      "$ref": "#/components/schemas/ResourceReference"
    },
    "jobRequisition": {
      "$ref": "#/components/schemas/ResourceReference"
    },
    "status": {
      "type": "string",
      "description": "The application status (e.g., In Progress, Offer, Hired, Rejected).",
      "example": "example_value"
    },
    "stage": {
      "$ref": "#/components/schemas/ResourceReference"
    },
    "appliedOn": {
      "type": "string",
      "format": "date-time",
      "example": "2026-01-15T10:30:00Z"
    },
    "hiredOn": {
      "type": "string",
      "format": "date-time",
      "example": "2026-01-15T10:30:00Z"
    }
  }
}