{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dns-coffee/json-schema/dns-coffee-ipns-zone-count-schema.json",
  "title": "IPNsZoneCount",
  "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/IPNsZoneCount",
  "additionalProperties": false,
  "properties": {
    "$schema": {
      "description": "A URL to the JSON Schema for this object.",
      "format": "uri",
      "readOnly": true,
      "type": "string"
    },
    "ip": {
      "description": "The queried IP address in canonical string form.",
      "type": "string"
    },
    "zone_counts": {
      "description": "Per-zone counts of the nameservers that have ever pointed at the address, largest first.",
      "items": {
        "$ref": "#/$defs/ZoneNSCount"
      },
      "type": [
        "array",
        "null"
      ]
    }
  },
  "required": [
    "ip",
    "zone_counts"
  ],
  "type": "object",
  "$defs": {
    "ZoneNSCount": {
      "additionalProperties": false,
      "properties": {
        "count": {
          "description": "How many of the address's nameservers live in the zone.",
          "format": "int64",
          "type": "integer"
        },
        "percent": {
          "description": "count as a percentage of the address's total nameservers.",
          "format": "double",
          "type": "number"
        },
        "zone": {
          "description": "Zone name.",
          "type": "string"
        }
      },
      "required": [
        "zone",
        "count",
        "percent"
      ],
      "type": "object"
    }
  }
}