{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/knit/main/json-schema/knit-employee-schema.json",
  "title": "Employee",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/knit-employees-api-openapi.yml#/components/schemas/Employee",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for the employee."
    },
    "first_name": {
      "type": "string"
    },
    "last_name": {
      "type": "string"
    },
    "email": {
      "type": "string",
      "format": "email"
    },
    "job_title": {
      "type": "string"
    },
    "department": {
      "type": "string"
    },
    "location": {
      "type": "string"
    },
    "employment_status": {
      "type": "string",
      "enum": [
        "active",
        "inactive",
        "terminated"
      ]
    },
    "start_date": {
      "type": "string",
      "format": "date"
    },
    "termination_date": {
      "type": [
        "string",
        "null"
      ],
      "format": "date"
    },
    "manager_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "integration_id": {
      "type": "string"
    }
  }
}