{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/linkbreakers-com/json-schema/linkbreakers-com-validation-instructions-custom-domain-response-schema.json",
  "title": "Response containing the status of a custom domain",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/linkbreakers-com-custom-domains-api-openapi.yml#/components/schemas/ValidationInstructionsCustomDomainResponse",
  "properties": {
    "validations": {
      "items": {
        "$ref": "#/$defs/ValidationInstructionsCustomDomainResponseValidation",
        "type": "object"
      },
      "title": "The list of validations that need to be performed",
      "type": "array"
    }
  },
  "type": "object",
  "$defs": {
    "ValidationInstructionsCustomDomainResponseValidation": {
      "properties": {
        "name": {
          "title": "The hostname to validate",
          "type": "string"
        },
        "purpose": {
          "$ref": "#/$defs/ValidationPurpose",
          "title": "Indicates whether the record proves ownership or enables TLS provisioning"
        },
        "type": {
          "$ref": "#/$defs/ValidationInstructionsCustomDomainResponseValidationType",
          "title": "DNS record type required for validation"
        },
        "value": {
          "title": "The value to set in the record",
          "type": "string"
        }
      },
      "title": "Information about a validation record",
      "type": "object"
    },
    "ValidationInstructionsCustomDomainResponseValidationType": {
      "default": "TYPE_UNSPECIFIED",
      "description": "- TYPE_UNSPECIFIED: Record type not specified\n - TYPE_TXT: TXT DNS record used for validation\n - TYPE_CNAME: CNAME DNS record used for validation",
      "enum": [
        "TYPE_UNSPECIFIED",
        "TYPE_TXT",
        "TYPE_CNAME"
      ],
      "title": "The type of record (e.g. \"txt\")",
      "type": "string"
    },
    "ValidationPurpose": {
      "default": "PURPOSE_UNSPECIFIED",
      "description": "- PURPOSE_UNSPECIFIED: Purpose not specified\n - PURPOSE_OWNERSHIP: DNS record proves ownership of the domain\n - PURPOSE_DOMAIN_VERIFICATION: DNS record enables TLS/domain verification with the provider\n - PURPOSE_DCV_DELEGATION: DNS record delegates certificate validation to the provider so every\nfuture renewal validates automatically without a new record",
      "enum": [
        "PURPOSE_UNSPECIFIED",
        "PURPOSE_OWNERSHIP",
        "PURPOSE_DOMAIN_VERIFICATION",
        "PURPOSE_DCV_DELEGATION"
      ],
      "title": "The purpose of this validation",
      "type": "string"
    }
  }
}