Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#3059: switch RJSF validator to cfworker/jsonschema #7081

Merged
merged 20 commits into from
Dec 21, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
"@rjsf/bootstrap-4": "^5.14.1",
"@rjsf/core": "^5.14.1",
"@rjsf/utils": "^5.15.0",
"@rjsf/validator-ajv6": "^5.15.0",
"@types/use-sync-external-store": "^0.0.6",
"@uipath/robot": "1.3.1",
"@vespaiach/axios-fetch-adapter": "^0.3.1",
Expand Down
2 changes: 1 addition & 1 deletion src/bricks/renderers/CustomFormComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import bootstrap from "bootstrap/dist/css/bootstrap.min.css?loadAsUrl";
import bootstrapOverrides from "@/pageEditor/sidebar/sidebarBootstrapOverrides.scss?loadAsUrl";
import custom from "@/bricks/renderers/customForm.css?loadAsUrl";
import JsonSchemaForm from "@rjsf/bootstrap-4";
import validator from "@rjsf/validator-ajv6";
import validator from "@/validators/formValidator";
import { type IChangeEvent } from "@rjsf/core";
import ImageCropWidget from "@/components/formBuilder/ImageCropWidget";
import RjsfSelectWidget from "@/components/formBuilder/RjsfSelectWidget";
Expand Down
2 changes: 1 addition & 1 deletion src/bricks/renderers/customForm.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { render, screen } from "@testing-library/react";
import ImageCropWidget from "@/components/formBuilder/ImageCropWidget";
import DescriptionField from "@/components/formBuilder/DescriptionField";
import JsonSchemaForm from "@rjsf/bootstrap-4";
import validator from "@rjsf/validator-ajv6";
import validator from "@/validators/formValidator";
import {
CustomFormRenderer,
normalizeIncomingFormData,
Expand Down
2 changes: 1 addition & 1 deletion src/bricks/transformers/ephemeralForm/EphemeralForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/

import React, { useEffect } from "react";
import validator from "@rjsf/validator-ajv6";
import validator from "@/validators/formValidator";
import { Theme } from "@rjsf/bootstrap-4";
import { withTheme, getDefaultRegistry } from "@rjsf/core";
import { useAsyncState } from "@/hooks/common";
Expand Down
2 changes: 1 addition & 1 deletion src/components/formBuilder/preview/FormPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
/* eslint-disable security/detect-object-injection */
import React, { useCallback, useEffect, useMemo, useState } from "react";
import JsonSchemaForm from "@rjsf/bootstrap-4";
import validator from "@rjsf/validator-ajv6";
import validator from "@/validators/formValidator";
import { type FieldProps } from "@rjsf/utils";
import { type IChangeEvent } from "@rjsf/core";
import {
Expand Down
Loading
Loading