CatalogBuilder.setFieldFormatValidators()
Home > @backstage/plugin-catalog-backend
> CatalogBuilder
> setFieldFormatValidators
Sets the validator function to use for one or more special fields of an entity. This is useful if the default rules for formatting of fields are not sufficient.
This function has no effect if used together with .
Signature:
setFieldFormatValidators(validators: Partial<Validators>): CatalogBuilder;
Parameters
Parameter |
Type |
Description |
---|---|---|
validators |
Partial<Validators> |
The (subset of) validators to set |