{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/packetrove-com/json-schema/packetrove-com-range-to-cidrs-result-schema.json",
  "title": "RangeToCidrsResult",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/packetrove-com-openapi.json#/components/schemas/RangeToCidrsResult",
  "type": "object",
  "properties": {
    "family": {
      "type": "string",
      "enum": [
        "ipv4",
        "ipv6"
      ]
    },
    "range": {
      "type": "object",
      "properties": {
        "first": {
          "type": "string"
        },
        "last": {
          "type": "string"
        }
      },
      "required": [
        "first",
        "last"
      ],
      "additionalProperties": false,
      "description": "Canonical inclusive start and end IP addresses."
    },
    "cidrs": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 64
      },
      "minItems": 1,
      "maxItems": 254,
      "description": "Complete minimal CIDR list, sorted by network address, with no gaps, overlaps, or additional addresses."
    },
    "cidrCount": {
      "type": "integer",
      "minimum": 1,
      "maximum": 254
    },
    "addressCount": {
      "type": "string",
      "pattern": "^(0|[1-9][0-9]*)$",
      "description": "Exact number of addresses as a base-10 string, including network and broadcast addresses."
    }
  },
  "required": [
    "family",
    "range",
    "cidrs",
    "cidrCount",
    "addressCount"
  ],
  "additionalProperties": false
}