-
Notifications
You must be signed in to change notification settings - Fork 2
constraint.NetIsTld
marrow16 edited this page Oct 22, 2022
·
4 revisions
Check that string value is a valid Tld (top level domain)
isTld
Field | Type | Description |
---|---|---|
AllowGeographicTlds |
bool | if set, allows geographic tlds |
AllowGenericTlds |
bool | if set, allows generic tlds |
AllowBrandTlds |
bool | if set, allows brand tlds |
AddCountryCodeTlds |
[]string | is an optional slice of additional country (and geographic) Tlds to allow |
ExcCountryCodeTlds |
[]string | is an optional slice of country (and geographic) Tlds to disallow |
AddGenericTlds |
[]string | is an optional slice of additional generic Tlds to allow (only checked if AllowGenericTlds is also set) |
ExcGenericTlds |
[]string | is an optional slice of generic Tlds to disallow (only relevant if AllowGenericTlds is also set) |
AddBrandTlds |
[]string | is an optional slice of additional brand Tlds to allow (only checked if AllowBrandTlds is also set) |
ExcBrandTlds |
[]string | is an optional slice of brand Tlds to disallow (only relevant if AllowBrandTlds is also set) |
Message |
string | the violation message to be used if the constraint fails. If empty, the default message is used |
Stop |
bool | when set to true, Stop prevents further validation checks on the property if this constraint fails |