{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/eckari-com/json-schema/eckari-com-domain-expiry-output-schema.json",
  "title": "domain_expiry_output",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/eckari-com-domain-intelligence-api-openapi.yml#/components/schemas/domain_expiry_output",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "domain",
    "is_registered",
    "expires_at",
    "days_until_expiry",
    "status",
    "registrar_name",
    "rdap_last_update",
    "terms_url"
  ],
  "properties": {
    "domain": {
      "type": "string",
      "description": "ASCII (punycode) domain name as recorded by the registry."
    },
    "is_registered": {
      "type": "boolean",
      "description": "True when the registry returned a record; false when the registry has no record."
    },
    "expires_at": {
      "type": [
        "string",
        "null"
      ],
      "description": "Registry expiry date (RDAP expiration event); null when the registry does not publish one."
    },
    "days_until_expiry": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Whole days from now to expires_at, floored; negative when already past expiry."
    },
    "status": {
      "type": "array",
      "description": "RFC 9083 status values (the RDAP spelling of EPP status codes), lower-cased and sorted.",
      "items": {
        "type": "string"
      }
    },
    "registrar_name": {
      "type": [
        "string",
        "null"
      ],
      "description": "Registrar name from the RDAP registrar entity."
    },
    "rdap_last_update": {
      "type": [
        "string",
        "null"
      ],
      "description": "Registry's own last update of RDAP database timestamp - how current this expiry date is. Null when the registry publishes no such event."
    },
    "terms_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "Link to the first notice the registry published with this response - normally its terms of service. Those terms govern your use of this data and vary by registry. Null when the registry published no notice link; the source acknowledgement is in meta.attribution."
    }
  }
}