{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/packetrove-com/json-schema/packetrove-com-cidr-subtract-result-schema.json",
  "title": "CidrSubtractResult",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/packetrove-com-openapi.json#/components/schemas/CidrSubtractResult",
  "type": "object",
  "properties": {
    "family": {
      "type": "string",
      "enum": [
        "ipv4",
        "ipv6"
      ]
    },
    "normalizedInclude": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 64
      },
      "minItems": 1,
      "maxItems": 1000
    },
    "normalizedExclude": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 64
      },
      "maxItems": 1000
    },
    "cidrs": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 64
      },
      "maxItems": 10000
    },
    "includedAddressCount": {
      "type": "string",
      "pattern": "^(0|[1-9][0-9]*)$",
      "description": "Exact number of addresses as a base-10 string, including network and broadcast addresses."
    },
    "removedAddressCount": {
      "type": "string",
      "pattern": "^(0|[1-9][0-9]*)$",
      "description": "Exact number of addresses as a base-10 string, including network and broadcast addresses."
    },
    "remainingAddressCount": {
      "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",
    "normalizedInclude",
    "normalizedExclude",
    "cidrs",
    "includedAddressCount",
    "removedAddressCount",
    "remainingAddressCount"
  ],
  "additionalProperties": false
}