{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-schema/ats-api-application-schema.json",
  "title": "Application",
  "description": "An application linking a candidate to a job in the ATS.",
  "type": "object",
  "properties": {
    "id": { "type": "string", "format": "uuid" },
    "remote_id": { "type": "string" },
    "candidate": { "type": "string", "format": "uuid" },
    "job": { "type": "string", "format": "uuid" },
    "applied_at": { "type": "string", "format": "date-time" },
    "rejected_at": { "type": "string", "format": "date-time" },
    "source": { "type": "string", "description": "Candidate source channel." },
    "credited_to": { "type": "string", "format": "uuid" },
    "current_stage": { "type": "string", "format": "uuid" },
    "reject_reason": { "type": "string", "format": "uuid" },
    "remote_was_deleted": { "type": "boolean" },
    "created_at": { "type": "string", "format": "date-time" },
    "modified_at": { "type": "string", "format": "date-time" }
  }
}
