{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dns-coffee/json-schema/dns-coffee-ipsubnet-list-schema.json",
  "title": "IPSubnetList",
  "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/IPSubnetList",
  "additionalProperties": false,
  "properties": {
    "$schema": {
      "description": "A URL to the JSON Schema for this object.",
      "format": "uri",
      "readOnly": true,
      "type": "string"
    },
    "ips": {
      "description": "The stored addresses in the subnet, ordered numerically.",
      "items": {
        "$ref": "#/$defs/IPSubnetResult"
      },
      "type": [
        "array",
        "null"
      ]
    },
    "subnet": {
      "description": "The searched subnet in masked canonical CIDR form.",
      "type": "string"
    },
    "timed_out": {
      "description": "True when the search exceeded its time budget; no results are returned then.",
      "type": "boolean"
    },
    "total": {
      "description": "Exact number of stored addresses in the subnet, counted without the result cap.",
      "format": "int64",
      "type": "integer"
    },
    "truncated": {
      "description": "True when the subnet holds more stored addresses than were returned; the results are the numerically-first addresses in the block.",
      "type": "boolean"
    },
    "version": {
      "description": "IP version of the subnet: 4 or 6.",
      "format": "int64",
      "type": "integer"
    }
  },
  "required": [
    "subnet",
    "version",
    "total",
    "truncated",
    "timed_out",
    "ips"
  ],
  "type": "object",
  "$defs": {
    "IPSubnetResult": {
      "additionalProperties": false,
      "properties": {
        "active": {
          "description": "True when at least one nameserver glue record currently points at the address.",
          "type": "boolean"
        },
        "active_nameserver_count": {
          "description": "Exact number of nameservers currently active on the address, leaving out zones we have not received in over six months (stale on /zones): the live count.",
          "format": "int64",
          "type": "integer"
        },
        "first_seen": {
          "description": "Date the address was first observed in glue records. Absent when it was already present when tracking began.",
          "format": "date-time",
          "type": "string"
        },
        "ip": {
          "description": "The address in canonical string form.",
          "type": "string"
        },
        "last_seen": {
          "description": "Date the address was last observed in glue records. Absent while it is still active.",
          "format": "date-time",
          "type": "string"
        },
        "stale_nameserver_count": {
          "description": "Number of nameservers active on the address through zones we have not received in over six months. They are left out of active_nameserver_count, but still make the address active.",
          "format": "int64",
          "type": "integer"
        }
      },
      "required": [
        "ip",
        "active",
        "active_nameserver_count",
        "stale_nameserver_count"
      ],
      "type": "object"
    }
  }
}