Skip to main content

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

ParameterTypeDescription
validatorsPartial<Validators>The (subset of) validators to set

Returns:

CatalogBuilder