Skip to main content
Version: Next

CustomFieldValidator

Home > @backstage/plugin-scaffolder-react > CustomFieldValidator

Field validation type for Custom Field Extensions.

Signature:

export type CustomFieldValidator<TFieldReturnValue, TUiOptions = unknown> = (data: TFieldReturnValue, field: FieldValidation, context: {
apiHolder: ApiHolder;
formData: JsonObject;
schema: JsonObject;
uiSchema?: FieldExtensionUiSchema<TFieldReturnValue, TUiOptions>;
}) => void | Promise<void>;

References: ApiHolder, JsonObject, FieldExtensionUiSchema