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 |
---|---|---|
|
Checks that the value can be safely transferred as JSON. | |
|
Checks that the value is a string value that's not empty. | |
|
Checks that the value is a valid DNS label. | |
|
Checks that the value is a valid DNS subdomain name. | |
isValidPrefixAndOrSuffix(value, separator, isValidPrefix, isValidSuffix) |
|
Checks that the value is on the form |
|
Checks that the value is a non empty string value. | |
|
Checks that the value is a valid tag. | |
|
Checks that the value is a valid string URL. |