{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/oyster-hr/json-schema/oyster-hr-departments-schema.json",
  "title": "departments",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/oyster-hr-departments-api-openapi.yml#/components/schemas/departments",
  "type": "array",
  "items": {
    "$ref": "#/$defs/department"
  },
  "$defs": {
    "department": {
      "type": "object",
      "properties": {
        "departmentId": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "engagementsCount": {
          "type": "integer"
        }
      },
      "required": [
        "departmentId",
        "name",
        "description",
        "engagementsCount"
      ]
    }
  }
}