BUGFIX: types fix: CAA_BUILDER accepts string[] or string for issue (#3546)

This commit is contained in:
Eli Heady 2025-05-03 08:21:44 -04:00 committed by GitHub
parent 7a4c16f447
commit d0fffaf8c2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 5 deletions

View file

@ -469,7 +469,7 @@ declare function CAA(name: string, tag: "issue" | "issuewild" | "iodef", value:
* *
* @see https://docs.dnscontrol.org/language-reference/domain-modifiers/caa_builder * @see https://docs.dnscontrol.org/language-reference/domain-modifiers/caa_builder
*/ */
declare function CAA_BUILDER(opts: { label?: string; iodef: string; iodef_critical?: boolean; issue: string[]; issue_critical?: boolean; issuewild: string[]; issuewild_critical?: boolean; ttl?: Duration }): DomainModifier; declare function CAA_BUILDER(opts: { label?: string; iodef: string; iodef_critical?: boolean; issue: string[]|string; issue_critical?: boolean; issuewild: string[]|string; issuewild_critical?: boolean; ttl?: Duration }): DomainModifier;
/** /**
* WARNING: Cloudflare is removing this feature and replacing it with a new * WARNING: Cloudflare is removing this feature and replacing it with a new

View file

@ -14,9 +14,9 @@ parameter_types:
label: string? label: string?
iodef: string iodef: string
iodef_critical: boolean? iodef_critical: boolean?
issue: string[] issue: string[]|string
issue_critical: boolean? issue_critical: boolean?
issuewild: string[] issuewild: string[]|string
issuewild_critical: boolean? issuewild_critical: boolean?
ttl: Duration? ttl: Duration?
--- ---

View file

@ -1678,8 +1678,8 @@ function SPF_BUILDER(value) {
// label: The DNS label for the CAA record. (default: '@') // label: The DNS label for the CAA record. (default: '@')
// iodef: The contact mail address. (optional) // iodef: The contact mail address. (optional)
// iodef_critical: Boolean if sending report is required/critical. If not supported, certificate should be refused. (optional) // iodef_critical: Boolean if sending report is required/critical. If not supported, certificate should be refused. (optional)
// issue: List of CAs which are allowed to issue certificates for the domain (creates one record for each). // issue: List of CAs which are allowed to issue certificates for the domain (creates one record for each), or the string 'none'.
// issuewild: Allowed CAs which can issue wildcard certificates for this domain. (creates one record for each) // issuewild: List of allowed CAs which can issue wildcard certificates for this domain, or the string 'none'. (creates one record for each)
// ttl: The time for TTL, integer or string. (default: not defined, using DefaultTTL) // ttl: The time for TTL, integer or string. (default: not defined, using DefaultTTL)
function CAA_BUILDER(value) { function CAA_BUILDER(value) {