{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/greenhouse/json-schema/greenhouse-department-schema.json",
  "title": "Department",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/greenhouse-departments-api-openapi.yml#/components/schemas/Department",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer"
    },
    "name": {
      "type": "string"
    },
    "parent_id": {
      "type": [
        "integer",
        "null"
      ]
    },
    "parent_department_external_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "child_ids": {
      "type": "array",
      "items": {
        "type": "integer"
      }
    },
    "external_id": {
      "type": [
        "string",
        "null"
      ]
    }
  }
}