{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dns-coffee/json-schema/dns-coffee-domain-dnssec-schema.json",
  "title": "DomainDNSSEC",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dns-coffee-domains-api-openapi.yml#/components/schemas/DomainDNSSEC",
  "additionalProperties": false,
  "properties": {
    "$schema": {
      "description": "A URL to the JSON Schema for this object.",
      "format": "uri",
      "readOnly": true,
      "type": "string"
    },
    "archive_ds": {
      "description": "DS records no longer present, most recently removed first, up to the requested limit.",
      "items": {
        "$ref": "#/$defs/DomainDS"
      },
      "type": [
        "array",
        "null"
      ]
    },
    "archive_ds_truncated": {
      "description": "True when the domain has more archived DS records than the limit allowed.",
      "type": "boolean"
    },
    "domain": {
      "description": "The domain name.",
      "type": "string"
    },
    "ds": {
      "description": "The currently active DS records, newest first, up to the requested limit.",
      "items": {
        "$ref": "#/$defs/DomainDS"
      },
      "type": [
        "array",
        "null"
      ]
    },
    "ds_truncated": {
      "description": "True when the domain has more active DS records than the limit allowed.",
      "type": "boolean"
    },
    "signed": {
      "description": "Whether the domain currently has any active DS record.",
      "type": "boolean"
    },
    "signed_since": {
      "description": "Earliest date a DS record was observed for the domain, including DS records since removed. Absent for a signed domain when it already had a DS record when record tracking began.",
      "format": "date-time",
      "type": "string"
    }
  },
  "required": [
    "signed"
  ],
  "type": "object",
  "$defs": {
    "DomainDS": {
      "additionalProperties": false,
      "properties": {
        "algorithm": {
          "description": "DNSSEC algorithm number of the referenced key.",
          "format": "int64",
          "type": "integer"
        },
        "algorithm_name": {
          "description": "IANA registry name for the algorithm.",
          "type": "string"
        },
        "digest": {
          "description": "Hex-encoded digest of the referenced key.",
          "type": "string"
        },
        "digest_type": {
          "description": "DS digest algorithm number.",
          "format": "int64",
          "type": "integer"
        },
        "digest_type_name": {
          "description": "Registry name for the digest type.",
          "type": "string"
        },
        "first_seen": {
          "description": "Date the DS record was first observed. Absent when it predates record tracking for its zone.",
          "format": "date-time",
          "type": "string"
        },
        "key_tag": {
          "description": "Key tag identifying the referenced DNSKEY.",
          "format": "int64",
          "type": "integer"
        },
        "last_seen": {
          "description": "Date the DS record was last observed. Absent while it is still active.",
          "format": "date-time",
          "type": "string"
        }
      },
      "required": [
        "key_tag",
        "algorithm",
        "digest_type",
        "digest"
      ],
      "type": "object"
    }
  }
}