{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dns-coffee/json-schema/dns-coffee-ipsubnet-block-list-schema.json",
  "title": "IPSubnetBlockList",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dns-coffee-ips-api-openapi.yml#/components/schemas/IPSubnetBlockList",
  "additionalProperties": false,
  "properties": {
    "$schema": {
      "description": "A URL to the JSON Schema for this object.",
      "format": "uri",
      "readOnly": true,
      "type": "string"
    },
    "blocks": {
      "description": "The non-empty child blocks, ordered numerically.",
      "items": {
        "$ref": "#/$defs/IPSubnetBlock"
      },
      "type": [
        "array",
        "null"
      ]
    },
    "child_prefix_len": {
      "description": "Prefix length of the child blocks counted (the subnet's prefix length + 8).",
      "format": "int64",
      "type": "integer"
    },
    "subnet": {
      "description": "The rolled-up subnet in masked canonical CIDR form.",
      "type": "string"
    },
    "timed_out": {
      "description": "True when the rollup exceeded its time budget; no blocks are returned then.",
      "type": "boolean"
    },
    "version": {
      "description": "IP version of the subnet: 4 or 6.",
      "format": "int64",
      "type": "integer"
    }
  },
  "required": [
    "subnet",
    "version",
    "child_prefix_len",
    "timed_out",
    "blocks"
  ],
  "type": "object",
  "$defs": {
    "IPSubnetBlock": {
      "additionalProperties": false,
      "properties": {
        "block": {
          "description": "The child block in CIDR form, e.g. \"205.251.192.0/26\".",
          "type": "string"
        },
        "count": {
          "description": "Number of stored addresses inside the block; only non-empty blocks are listed.",
          "format": "int64",
          "type": "integer"
        }
      },
      "required": [
        "block",
        "count"
      ],
      "type": "object"
    }
  }
}