From 3710113b8f8ab5a784bb521dbcb1c4afd6369913 Mon Sep 17 00:00:00 2001 From: Sachin Chaurasiya Date: Mon, 8 Jan 2024 16:58:04 +0530 Subject: [PATCH] Minor: fix validator type error for ingestion workflow form (#14619) * Minor: fix validator type error for ingestion workflow form * Minor: use customizeValidator method --- .../IngestionWorkflowForm/IngestionWorkflowForm.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/openmetadata-ui/src/main/resources/ui/src/components/IngestionWorkflowForm/IngestionWorkflowForm.tsx b/openmetadata-ui/src/main/resources/ui/src/components/IngestionWorkflowForm/IngestionWorkflowForm.tsx index 1c181f7d954..3187c89309f 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/IngestionWorkflowForm/IngestionWorkflowForm.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/IngestionWorkflowForm/IngestionWorkflowForm.tsx @@ -12,7 +12,7 @@ */ import Form, { IChangeEvent } from '@rjsf/core'; import { RegistryFieldsType } from '@rjsf/utils'; -import validator from '@rjsf/validator-ajv8'; +import { customizeValidator } from '@rjsf/validator-ajv8'; import { Button, Space } from 'antd'; import classNames from 'classnames'; import { isUndefined, omit, omitBy } from 'lodash'; @@ -60,6 +60,11 @@ const IngestionWorkflowForm: FC = ({ [pipeLineType, serviceCategory] ); + const validator = useMemo( + () => customizeValidator(), + [] + ); + const isElasticSearchPipeline = pipeLineType === PipelineType.ElasticSearchReindex;