{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dnsdoctor-dev/json-schema/dnsdoctor-dev-bulk-registration-out-schema.json",
  "title": "BulkRegistrationOut",
  "description": "The batch. `domains_resolved` is what the settle gate reads.\n\nEvery requested name gets a row, in request order — `unknown` with a reason\nwhen it could not be read, so \"missing\" is never mistaken for an answer.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dnsdoctor-dev-tools-api-openapi.yml#/components/schemas/BulkRegistrationOut",
  "properties": {
    "domains_requested": {
      "type": "integer",
      "title": "Domains Requested"
    },
    "domains_resolved": {
      "type": "integer",
      "title": "Domains Resolved"
    },
    "results": {
      "items": {
        "$ref": "#/$defs/RegistrationResponse"
      },
      "type": "array",
      "title": "Results"
    }
  },
  "type": "object",
  "required": [
    "domains_requested",
    "domains_resolved",
    "results"
  ],
  "$defs": {
    "Registration": {
      "properties": {
        "registrar": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Registrar"
        },
        "registrar_iana_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Registrar Iana Id"
        },
        "registered_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Registered At"
        },
        "updated_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Updated At"
        },
        "expires_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Expires At"
        },
        "status": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Status",
          "default": []
        },
        "nameservers": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Nameservers",
          "default": []
        },
        "dnssec": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Dnssec"
        },
        "abuse_email": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Abuse Email"
        },
        "redacted": {
          "type": "boolean",
          "title": "Redacted",
          "default": false
        }
      },
      "type": "object",
      "title": "Registration",
      "description": "What a registry publishes about one domain. Observation only.\n\nEvery field is optional because every field is redactable: a registry that\npublishes only status codes and nameservers is the normal post-GDPR case,\nnot a failure. `status` carries the registry's own strings verbatim (RFC\n9083 spells them `client transfer prohibited`; some registries still emit\nEPP camelCase) — normalizing them would invent a vocabulary neither side\nuses."
    },
    "RegistrationResponse": {
      "properties": {
        "domain": {
          "type": "string",
          "title": "Domain"
        },
        "status": {
          "$ref": "#/$defs/RegistrationStatus"
        },
        "reason": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Reason"
        },
        "registration": {
          "anyOf": [
            {
              "$ref": "#/$defs/Registration"
            },
            {
              "type": "null"
            }
          ]
        },
        "queried_at": {
          "type": "string",
          "format": "date-time",
          "title": "Queried At"
        }
      },
      "type": "object",
      "required": [
        "domain",
        "status",
        "queried_at"
      ],
      "title": "RegistrationResponse",
      "description": "One registry reading. `registration` is present only for `REGISTERED`."
    },
    "RegistrationStatus": {
      "type": "string",
      "enum": [
        "registered",
        "not_registered",
        "unknown"
      ],
      "title": "RegistrationStatus",
      "description": "What the registry told us. `UNKNOWN` is the honest third answer.\n\nDeliberately three-valued: a registry that did not answer has said nothing\nabout the domain, and collapsing that into `NOT_REGISTERED` would tell a\ncaller a name is free on the strength of a 429."
    }
  }
}