{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rdapapi-io/json-schema/rdapapi-io-tld-entry-schema.json",
  "title": "TldEntry",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rdapapi-io-openapi.yaml#/components/schemas/TldEntry",
  "type": "object",
  "required": [
    "tld",
    "protocol",
    "supported_since",
    "server",
    "rdap_server_host",
    "rdap_server_url",
    "field_availability"
  ],
  "properties": {
    "tld": {
      "type": "string",
      "description": "Lowercase TLD label without a leading dot."
    },
    "protocol": {
      "type": "string",
      "enum": [
        "rdap",
        "whois"
      ],
      "description": "Which protocol answers for this TLD. `whois` marks the TLDs IANA lists no RDAP server for."
    },
    "supported_since": {
      "type": "string",
      "format": "date-time",
      "description": "When this TLD was first added to the RDAP API index. Not the same as when IANA delegated the TLD."
    },
    "server": {
      "type": "string",
      "description": "Hostname of the upstream that answers for this TLD. This is what `?server=` filters on, and what a lookup's `meta.server` returns."
    },
    "rdap_server_host": {
      "type": [
        "string",
        "null"
      ],
      "deprecated": true,
      "description": "Superseded by `server`. Null when `protocol` is `whois`."
    },
    "rdap_server_url": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "description": "Full URL of the upstream RDAP server. Null when `protocol` is `whois`, which has no URL form."
    },
    "field_availability": {
      "type": [
        "object",
        "null"
      ],
      "description": "How often the registry fills each field, without follow. `null` for WHOIS TLDs and\nuntil there is enough data.\n",
      "required": [
        "registrar",
        "registered_at",
        "expires_at",
        "nameservers",
        "status"
      ],
      "properties": {
        "registrar": {
          "$ref": "#/$defs/AvailabilityLevel"
        },
        "registered_at": {
          "$ref": "#/$defs/AvailabilityLevel"
        },
        "expires_at": {
          "$ref": "#/$defs/AvailabilityLevel"
        },
        "nameservers": {
          "$ref": "#/$defs/AvailabilityLevel"
        },
        "status": {
          "$ref": "#/$defs/AvailabilityLevel"
        }
      }
    }
  },
  "$defs": {
    "AvailabilityLevel": {
      "type": "string",
      "enum": [
        "always",
        "usually",
        "sometimes",
        "never"
      ],
      "description": "Qualitative bucket describing how often a field is populated in the TLD's registry RDAP response."
    }
  }
}