getTestRegistry requires validator-ajv8
Author: samcraggCreated Sep 18, 2026Updated Sep 18, 2026
Labelsbugneeds triage
Prerequisites
- I have searched the existing issues
- I understand that providing a SSCCE example is tremendously useful to the maintainers.
- I have read the documentation
- Ideally, I'm providing a sample JSFiddle, Codesandbox.io or preferably a shared playground link demonstrating the issue.
What theme are you using?
core
Version
6.10.1
Current Behavior
I'm using the @rjsf/validator-cfworker validator, however, I still have to include the @rjsf/validator-ajv8 package as getTestRegistry is being exported and it imports from the library here
Expected Behavior
It would be nice if the core library didn't depend on ajv8
Steps To Reproduce
Very easy to reproduce, have a minimal app like this:
// package,json
{
"private": true,
"dependencies": {
"@rjsf/core": "^6.10.1",
"@rjsf/utils": "^6.10.1",
"@rjsf/validator-cfworker": "^6.10.1",
"react": "^19.3.0",
"react-dom": "^19.3.0"
}
}// index.tsx
import { createRoot } from "react-dom/client";
import Form from "@rjsf/core";
import { RJSFSchema } from "@rjsf/utils";
import { customizeValidator } from "@rjsf/validator-cfworker";
const validator = customizeValidator();
const schema: RJSFSchema = {
title: "Test form",
type: "string",
};
createRoot(document.getElementById('app')).render(<Form schema={schema} validator={validator} />);// index.html
<!doctype html>
<div id="app"></div>
<script type="module" src="./index.tsx"></script>Running via bun index.html and you'll see this:
Environment
- OS:Windows 11
- Bun: v1.4.2Anything else?
Happy to raise a PR to perhaps replace the validator in that file with a minimal one for testing, so it's dependency free?
Source: rjsf-team/react-jsonschema-form