{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cavuno-com/json-schema/cavuno-com-candidate-schema.json",
  "title": "Candidate",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cavuno-com-candidates-api-openapi.yml#/components/schemas/Candidate",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for the candidate."
    },
    "object": {
      "type": "string",
      "enum": [
        "candidate"
      ],
      "description": "String representing the object's type."
    },
    "email": {
      "type": "string",
      "description": "The candidate's email address."
    },
    "displayName": {
      "type": [
        "string",
        "null"
      ],
      "description": "The candidate's display name."
    },
    "handle": {
      "type": [
        "string",
        "null"
      ],
      "description": "Public-profile handle, or `null`."
    },
    "avatarUrl": {
      "type": [
        "string",
        "null"
      ],
      "description": "Avatar URL, or `null`."
    },
    "hasResume": {
      "type": "boolean",
      "description": "Whether a resume is on file. On list rows this reflects the stored pointer; on the single-candidate detail it reflects the resolved blob (always agrees with `resume !== null`), so the two can briefly disagree if a stored file was garbage-collected."
    },
    "createdAt": {
      "type": "string",
      "description": "ISO-8601 timestamp of when the candidate registered."
    },
    "candidateCreatedAt": {
      "type": "string",
      "description": "ISO-8601 timestamp when this Board user became an operator-visible Candidate. This is the reconciliation counterpart of candidate.created, not newsletter permission."
    },
    "updatedAt": {
      "type": [
        "string",
        "null"
      ],
      "description": "ISO-8601 timestamp of the latest approved Candidate identity update, or null for older rows."
    },
    "revision": {
      "type": "integer",
      "minimum": 0,
      "description": "Monotonic Candidate lifecycle revision; legacy rows are 0 until the rollout migration runs."
    },
    "lastActiveAt": {
      "type": [
        "string",
        "null"
      ],
      "description": "ISO-8601 timestamp of the last activity on the board (a sign-in or signed-in use), to the hour, or `null`."
    }
  },
  "required": [
    "id",
    "object",
    "email",
    "displayName",
    "handle",
    "avatarUrl",
    "hasResume",
    "createdAt",
    "candidateCreatedAt",
    "updatedAt",
    "revision",
    "lastActiveAt"
  ]
}