{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/zippedscript/json-schema/zippedscript-update-reference-check-schema.json",
  "title": "UpdateReferenceCheck",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/zippedscript-reference-checks-api-openapi.yml#/components/schemas/UpdateReferenceCheck",
  "type": "object",
  "properties": {
    "candidate": {
      "title": "Candidate",
      "type": "string"
    },
    "request_id": {
      "title": "Request id",
      "type": "string",
      "maxLength": 256,
      "minLength": 1
    },
    "reference_name": {
      "title": "Reference name",
      "type": "string",
      "maxLength": 255,
      "minLength": 1
    },
    "reference_email": {
      "title": "Reference email",
      "description": "The email of the reference to send the check request to.",
      "type": "string",
      "format": "email",
      "maxLength": 254,
      "minLength": 1
    },
    "relationship": {
      "title": "Relationship",
      "description": "Relationship to the candidate",
      "type": [
        "string",
        "null"
      ],
      "maxLength": 255
    },
    "additional_details": {
      "title": "Additional details",
      "type": [
        "object",
        "null"
      ]
    },
    "end_user_consent_files": {
      "title": "End user consent files",
      "type": [
        "object",
        "null"
      ]
    },
    "lang": {
      "title": "Lang",
      "type": "string",
      "maxLength": 10
    },
    "initial_email_sent": {
      "title": "Initial email sent",
      "type": "boolean"
    },
    "cadence_emails_sent": {
      "title": "Cadence emails sent",
      "type": "integer",
      "maximum": 2147483647,
      "minimum": -2147483648
    },
    "last_cadence_email_sent": {
      "title": "Last cadence email sent",
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "company": {
      "title": "Company",
      "type": "integer"
    },
    "initiator": {
      "title": "Initiator",
      "description": "The user who created the reference check request",
      "type": [
        "integer",
        "null"
      ]
    }
  }
}