{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cavuno-com/json-schema/cavuno-com-candidate-sync-snapshot-schema.json",
  "title": "CandidateSyncSnapshot",
  "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/CandidateSyncSnapshot",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for the candidate."
    },
    "email": {
      "type": "string",
      "description": "The candidate's email address."
    },
    "displayName": {
      "type": [
        "string",
        "null"
      ],
      "description": "The candidate's display name."
    },
    "revision": {
      "type": "integer",
      "minimum": 0,
      "description": "Monotonic Candidate lifecycle revision."
    },
    "profileRevision": {
      "type": "integer",
      "minimum": 0,
      "description": "Monotonic profile-projection revision."
    },
    "deactivatedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "ISO 8601 timestamp when sign-in was disabled, or `null` when active."
    },
    "profile": {
      "type": "object",
      "properties": {
        "headline": {
          "type": [
            "string",
            "null"
          ]
        },
        "bio": {
          "type": [
            "string",
            "null"
          ]
        },
        "location": {
          "type": [
            "string",
            "null"
          ]
        },
        "countryCode": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "headline",
        "bio",
        "location",
        "countryCode"
      ]
    },
    "skills": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "languages": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CandidateSyncSnapshotLanguage"
      }
    },
    "experience": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CandidateSyncSnapshotExperience"
      }
    },
    "education": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CandidateSyncSnapshotEducation"
      }
    }
  },
  "required": [
    "id",
    "email",
    "displayName",
    "revision",
    "profileRevision",
    "deactivatedAt",
    "profile",
    "skills",
    "languages",
    "experience",
    "education"
  ],
  "$defs": {
    "CandidateSyncSnapshotEducation": {
      "type": "object",
      "properties": {
        "institutionName": {
          "type": "string"
        },
        "institutionUrl": {
          "type": [
            "string",
            "null"
          ]
        },
        "degree": {
          "type": [
            "string",
            "null"
          ]
        },
        "fieldOfStudy": {
          "type": [
            "string",
            "null"
          ]
        },
        "grade": {
          "type": [
            "string",
            "null"
          ]
        },
        "activitiesAndSocieties": {
          "type": [
            "string",
            "null"
          ]
        },
        "startDate": {
          "type": [
            "string",
            "null"
          ]
        },
        "endDate": {
          "type": [
            "string",
            "null"
          ]
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "sortOrder": {
          "type": "integer"
        }
      },
      "required": [
        "institutionName",
        "institutionUrl",
        "degree",
        "fieldOfStudy",
        "grade",
        "activitiesAndSocieties",
        "startDate",
        "endDate",
        "description",
        "sortOrder"
      ]
    },
    "CandidateSyncSnapshotExperience": {
      "type": "object",
      "properties": {
        "title": {
          "type": "string"
        },
        "companyName": {
          "type": "string"
        },
        "companyUrl": {
          "type": [
            "string",
            "null"
          ]
        },
        "location": {
          "type": [
            "string",
            "null"
          ]
        },
        "employmentType": {
          "type": [
            "string",
            "null"
          ]
        },
        "locationType": {
          "type": [
            "string",
            "null"
          ]
        },
        "foundVia": {
          "type": [
            "string",
            "null"
          ]
        },
        "startDate": {
          "type": "string"
        },
        "endDate": {
          "type": [
            "string",
            "null"
          ]
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "experienceSkills": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "sortOrder": {
          "type": "integer"
        }
      },
      "required": [
        "title",
        "companyName",
        "companyUrl",
        "location",
        "employmentType",
        "locationType",
        "foundVia",
        "startDate",
        "endDate",
        "description",
        "experienceSkills",
        "sortOrder"
      ]
    },
    "CandidateSyncSnapshotLanguage": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "proficiency": {
          "type": "string"
        },
        "sortOrder": {
          "type": "integer"
        }
      },
      "required": [
        "name",
        "proficiency",
        "sortOrder"
      ]
    }
  }
}