{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dns-coffee/json-schema/dns-coffee-dnssecoverview-schema.json",
  "title": "DNSSECOverview",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dns-coffee-openapi.yml#/components/schemas/DNSSECOverview",
  "additionalProperties": false,
  "properties": {
    "$schema": {
      "description": "A URL to the JSON Schema for this object.",
      "format": "uri",
      "readOnly": true,
      "type": "string"
    },
    "adoption": {
      "description": "Signed-zones timeline, oldest first: the number of tracked zones signed on each date, with one point per date the count changed. A zone counts on every date it published an apex DNSKEY or its parent zone published a DS record for it, so a zone that stops signing leaves the count from the day after it was last seen signed and still counts at every earlier date. A lapse of fewer than seven days between two signed stretches counts as signed. A record already present when tracking of its zone began counts from that date. The newest point equals signed_zones. The series starts once at least ten zones have full-record tracking.",
      "items": {
        "$ref": "#/$defs/DNSSECAdoptionPoint"
      },
      "type": [
        "array",
        "null"
      ]
    },
    "algorithm_counts": {
      "description": "Per-algorithm zone counts, largest first.",
      "items": {
        "$ref": "#/$defs/DNSSECAlgorithmCount"
      },
      "type": [
        "array",
        "null"
      ]
    },
    "broken_history": {
      "description": "Historical count of validation-broken zones, oldest first, one point per date the count changed (a step series). Built from the daily soa_expired and dnskey_expired counts, so a signature counts as expired on a date only if it had already expired when we first received the version of the zone file in effect that day and no signature of its covered type that we have recorded for the zone was valid at the start (UTC) of that day.",
      "items": {
        "$ref": "#/$defs/BrokenZonePoint"
      },
      "type": [
        "array",
        "null"
      ]
    },
    "pre_tracking_zones": {
      "description": "Number of signed zones that were already signed when record tracking began (no signed_since date).",
      "format": "int64",
      "type": "integer"
    },
    "root_adoption": {
      "description": "The signed share of the root's TLD delegations over time: TLDs with a DS record in the root against all delegated TLDs.",
      "items": {
        "$ref": "#/$defs/RootAdoptionPoint"
      },
      "type": [
        "array",
        "null"
      ]
    },
    "signed_zones": {
      "description": "Number of tracked zones that are signed: an active apex DNSKEY, or an active DS record for the zone in its parent zone.",
      "format": "int64",
      "type": "integer"
    },
    "total_zones": {
      "description": "Number of tracked zones.",
      "format": "int64",
      "type": "integer"
    },
    "zones": {
      "description": "Every tracked zone's status, ordered by zone name.",
      "items": {
        "$ref": "#/$defs/DNSSECZoneStatus"
      },
      "type": [
        "array",
        "null"
      ]
    },
    "zones_broken": {
      "description": "Number of validation-broken zones: those serving no unexpired signature for some covered apex type (SOA or DNSKEY). A subset of zones_with_expired_rrsigs.",
      "format": "int64",
      "type": "integer"
    },
    "zones_with_expired_rrsigs": {
      "description": "Number of zones with at least one active apex signature that counts as expired. A superset of zones_broken, which also requires every active signature of a covered type to count as expired.",
      "format": "int64",
      "type": "integer"
    }
  },
  "required": [
    "signed_zones",
    "total_zones",
    "pre_tracking_zones",
    "zones_with_expired_rrsigs",
    "zones_broken",
    "zones"
  ],
  "type": "object",
  "$defs": {
    "BrokenZonePoint": {
      "additionalProperties": false,
      "properties": {
        "broken_zones": {
          "description": "Number of validation-broken zones as of the date.",
          "format": "int64",
          "type": "integer"
        },
        "date": {
          "description": "The date of this step of the series.",
          "format": "date-time",
          "type": "string"
        }
      },
      "required": [
        "date",
        "broken_zones"
      ],
      "type": "object"
    },
    "DNSSECAdoptionPoint": {
      "additionalProperties": false,
      "properties": {
        "date": {
          "description": "The date the signed-zone count changed to this value. The count holds until the next point's date.",
          "format": "date-time",
          "type": "string"
        },
        "signed_zones": {
          "description": "Number of tracked zones signed on the date: publishing an apex DNSKEY, or with a DS record in their parent zone.",
          "format": "int64",
          "type": "integer"
        }
      },
      "required": [
        "date",
        "signed_zones"
      ],
      "type": "object"
    },
    "DNSSECAlgorithmCount": {
      "additionalProperties": false,
      "properties": {
        "algorithm": {
          "description": "DNSSEC algorithm number.",
          "format": "int64",
          "type": "integer"
        },
        "algorithm_name": {
          "description": "IANA registry name for the algorithm.",
          "type": "string"
        },
        "zones": {
          "description": "Number of zones with an active key of this algorithm.",
          "format": "int64",
          "type": "integer"
        }
      },
      "required": [
        "algorithm",
        "algorithm_name",
        "zones"
      ],
      "type": "object"
    },
    "DNSSECZoneStatus": {
      "additionalProperties": false,
      "properties": {
        "algorithms": {
          "description": "IANA registry names of the active keys' algorithms, sorted by algorithm number.",
          "items": {
            "type": "string"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "as_of": {
          "description": "Date of the zone's most recent import, which its DNSKEY and signature data reflect. A date far in the past means the posture may be out of date. The parent's DS record reflects the parent zone's most recent import.",
          "format": "date-time",
          "type": "string"
        },
        "broken": {
          "description": "True when the zone is validation-broken: for some covered apex type (SOA or DNSKEY) every active signature is expired, so no valid signature covers that type. Stricter than expired_rrsigs > 0: a type whose other active signatures passed their expiration only after the current version of the zone file arrived does not count as broken.",
          "type": "boolean"
        },
        "dnskey_count": {
          "description": "Number of currently active DNSKEYs.",
          "format": "int64",
          "type": "integer"
        },
        "domains": {
          "description": "The zone's domain count from its latest import. Absent when unknown.",
          "format": "int64",
          "type": "integer"
        },
        "ds_count": {
          "description": "Number of DS records published in the zone, from the latest daily rollup.",
          "format": "int64",
          "type": "integer"
        },
        "ds_domain_count": {
          "description": "Number of distinct signed domains in the zone, from the latest daily rollup.",
          "format": "int64",
          "type": "integer"
        },
        "expired_rrsigs": {
          "description": "Number of active apex signatures that count as expired: already expired when we first received the current version of the zone file (its SOA serial), no signature of their covered type that we have recorded for the zone is valid now, and the zone neither stale nor dead.",
          "format": "int64",
          "type": "integer"
        },
        "first_observed": {
          "description": "Date the zone was first observed signed: signed_since when known, otherwise the date record tracking began. Present only for signed zones.",
          "format": "date-time",
          "type": "string"
        },
        "history_date": {
          "description": "Date of the rollup the DS counts come from.",
          "format": "date-time",
          "type": "string"
        },
        "parent_ds": {
          "description": "Whether the zone's parent zone (the root, for a top-level domain) currently publishes a DS record for it. Always false when the parent zone is not imported.",
          "type": "boolean"
        },
        "signed": {
          "description": "Whether the zone is currently signed: it has an active apex DNSKEY, or its parent zone (the root, for a top-level domain) publishes an active DS record for it. A zone whose files omit the apex DNSKEY still reads as signed while that DS record remains.",
          "type": "boolean"
        },
        "signed_since": {
          "description": "Earliest date the zone was observed signed: the first apex DNSKEY, or the first DS record for it in its parent zone, whichever came first. Absent for a signed zone when it was already signed when record tracking began (see tracking_since), including by keys or DS records since retired.",
          "format": "date-time",
          "type": "string"
        },
        "tracking_since": {
          "description": "Date full-record indexing (DNSSEC, SOA, and other records) began for the zone; absent when unknown. A signed zone with no signed_since was already signed by this date.",
          "format": "date-time",
          "type": "string"
        },
        "zone": {
          "description": "Zone name.",
          "type": "string"
        }
      },
      "required": [
        "zone",
        "signed",
        "parent_ds",
        "dnskey_count",
        "expired_rrsigs",
        "broken"
      ],
      "type": "object"
    },
    "RootAdoptionPoint": {
      "additionalProperties": false,
      "properties": {
        "date": {
          "description": "The date of the point.",
          "format": "date-time",
          "type": "string"
        },
        "percent": {
          "description": "signed_tlds as a percentage of total_tlds.",
          "format": "double",
          "type": "number"
        },
        "signed_tlds": {
          "description": "Number of TLDs the root zone published a DS record for that day.",
          "format": "int64",
          "type": "integer"
        },
        "total_tlds": {
          "description": "Number of TLDs delegated in the root zone at or before that day.",
          "format": "int64",
          "type": "integer"
        }
      },
      "required": [
        "date",
        "signed_tlds",
        "total_tlds",
        "percent"
      ],
      "type": "object"
    }
  }
}