From 079ba65308bca8a6d98c287f1f5be00029538f68 Mon Sep 17 00:00:00 2001 From: Marcus Penn <11893741+mpenndev@users.noreply.github.com> Date: Tue, 27 Feb 2024 13:29:14 +0000 Subject: [PATCH] Update validation docs with correct require statement --- packages/docs/docs/usage/validation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/docs/docs/usage/validation.md b/packages/docs/docs/usage/validation.md index 7818b2d854..7662f73c43 100644 --- a/packages/docs/docs/usage/validation.md +++ b/packages/docs/docs/usage/validation.md @@ -36,7 +36,7 @@ The `@rjsf/validator-ajv8` package exports the `compileSchemaValidators()` funct It is expected that this function will be used in a manner similar to the following: ```cjs -const { compileSchemaValidators } = require('@rjsf/validator-ajv8'); +const compileSchemaValidators = require('@rjsf/validator-ajv8/dist/compileSchemaValidators').default; const yourSchema = require('path_to/yourSchema'); // If your schema is a js file compileSchemaValidators(yourSchema, 'path_to/yourCompiledSchema.js');