{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/veritas-infoscale/json-schema/veritas-infoscale-disk-collection-schema.json",
  "title": "DiskCollection",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/veritas-infoscale-disks-api-openapi.yml#/components/schemas/DiskCollection",
  "type": "object",
  "properties": {
    "disks": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Disk"
      }
    }
  },
  "$defs": {
    "Disk": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Disk name"
        },
        "devicePath": {
          "type": "string",
          "description": "Device path"
        },
        "size": {
          "type": "string",
          "description": "Disk size"
        },
        "state": {
          "type": "string",
          "description": "Disk state",
          "enum": [
            "online",
            "offline",
            "error"
          ]
        },
        "diskGroup": {
          "type": "string",
          "description": "Disk group membership"
        },
        "mediaType": {
          "type": "string",
          "description": "Media type",
          "enum": [
            "HDD",
            "SSD",
            "NVMe"
          ]
        }
      }
    }
  }
}