CommonValidatorFunctions
Home > @backstage/catalog-model
> CommonValidatorFunctions
Contains various helper validation and normalization functions that can be composed to form a Validator.
Signature:
class CommonValidatorFunctions
Methods
Method | Modifiers | Description |
---|---|---|
isJsonSafe(value) | static | Checks that the value can be safely transferred as JSON. |
isNonEmptyString(value) | static | Checks that the value is a string value that's not empty. |
isValidDnsLabel(value) | static | Checks that the value is a valid DNS label. |
isValidDnsSubdomain(value) | static | Checks that the value is a valid DNS subdomain name. |
isValidPrefixAndOrSuffix(value, separator, isValidPrefix, isValidSuffix) | static | Checks that the value is on the form <suffix> or <prefix><separator><suffix> , and validates those parts separately. |
isValidString(value) | static | Checks that the value is a non empty string value. |
isValidTag(value) | static | Checks that the value is a valid tag. |
isValidUrl(value) | static | Checks that the value is a valid string URL. |