{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/zywave/json-schema/zywave-paged-result-of-department-schema.json",
  "title": "PagedResultOfDepartment",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/zywave-departments-api-openapi.yml#/components/schemas/PagedResultOfDepartment",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "hasMoreResults": {
      "type": "boolean"
    },
    "pageIndex": {
      "type": "integer",
      "format": "int32"
    },
    "pageSize": {
      "type": "integer",
      "format": "int32"
    },
    "skip": {
      "type": "integer",
      "format": "int32"
    },
    "take": {
      "type": "integer",
      "format": "int32"
    },
    "totalCount": {
      "type": "integer",
      "format": "int32"
    },
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Department"
      }
    }
  },
  "$defs": {
    "Department": {
      "allOf": [
        {
          "$ref": "#/$defs/DepartmentInfo"
        },
        {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "id": {
              "type": "integer",
              "description": "The unique Zywave identifier for the department.",
              "format": "int32"
            }
          }
        }
      ]
    },
    "DepartmentInfo": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "description"
      ],
      "properties": {
        "description": {
          "type": "string",
          "description": "The description of the department.",
          "maxLength": 50,
          "minLength": 1
        },
        "isArchived": {
          "type": "boolean",
          "description": "Indicates whether the department is archived."
        }
      }
    }
  }
}