{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/oyster-hr/json-schema/oyster-hr-offboarding-schema.json",
  "title": "offboarding",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/oyster-hr-offboarding-api-openapi.yml#/components/schemas/offboarding",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "engagement": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "countryCode": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "name",
        "countryCode"
      ]
    },
    "state": {
      "type": "string"
    },
    "cancelledAt": {
      "type": [
        "string",
        "null"
      ]
    },
    "initiatedAt": {
      "type": [
        "string",
        "null"
      ]
    },
    "cancelReason": {
      "type": [
        "string",
        "null"
      ]
    },
    "requestorId": {
      "type": [
        "string",
        "null"
      ]
    },
    "category": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "parentCategory": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "id": {
              "type": "string"
            },
            "name": {
              "type": "string"
            }
          },
          "required": [
            "id",
            "name"
          ]
        }
      },
      "required": [
        "id",
        "name"
      ]
    },
    "lastDayOn": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "id",
    "engagement",
    "state",
    "cancelledAt",
    "initiatedAt",
    "cancelReason",
    "requestorId",
    "category",
    "lastDayOn"
  ]
}