{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$id": "https://artifacts.apis.io/folio/json-schema/folio-central-server-item-types-dto-schema.json",
  "title": "centralServerItemTypesDTO",
  "description": "Item types collection from all configured central servers",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/folio-central-server-configuration-api-openapi.yml#/components/schemas/centralServerItemTypesDTO",
  "type": "object",
  "properties": {
    "centralServerItemTypes": {
      "description": "List of item types per central server",
      "type": "array",
      "items": {
        "type": "object",
        "$ref": "#/$defs/itemTypesPerCentralServerDTO"
      }
    },
    "totalRecords": {
      "type": "integer"
    }
  },
  "additionalProperties": false,
  "required": [
    "centralServerItemTypes"
  ],
  "$defs": {
    "itemType": {
      "$schema": "http://json-schema.org/draft-04/schema#",
      "description": "Item type details",
      "type": "object",
      "properties": {
        "centralItemType": {
          "description": "Item type",
          "type": "integer"
        },
        "description": {
          "description": "Item type description",
          "type": "string"
        }
      },
      "additionalProperties": false,
      "required": [
        "centralItemType",
        "description"
      ]
    },
    "itemTypesPerCentralServerDTO": {
      "$schema": "http://json-schema.org/draft-04/schema#",
      "description": "Central server item types",
      "type": "object",
      "properties": {
        "centralServerId": {
          "description": "Central server id",
          "type": "string",
          "format": "uuid"
        },
        "centralServerCode": {
          "description": "Central server code",
          "type": "string",
          "maxLength": 5
        },
        "itemTypes": {
          "description": "List of item types for this central server",
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/$defs/itemType"
          }
        }
      },
      "additionalProperties": false,
      "required": [
        "centralServerId",
        "centralServerCode",
        "itemTypes"
      ]
    }
  }
}