Gathering detailed insights and metrics for @consolecore/rjsf-validator-ajv8
Gathering detailed insights and metrics for @consolecore/rjsf-validator-ajv8
Gathering detailed insights and metrics for @consolecore/rjsf-validator-ajv8
Gathering detailed insights and metrics for @consolecore/rjsf-validator-ajv8
A React component for building Web forms from JSON Schema.
npm install @consolecore/rjsf-validator-ajv8
Typescript
Module System
Min. Node Version
Node Version
NPM Version
TypeScript (76.56%)
JavaScript (22.56%)
CSS (0.67%)
MDX (0.19%)
HTML (0.02%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
Apache-2.0 License
15,035 Stars
1,794 Commits
2,268 Forks
162 Watchers
29 Branches
370 Contributors
Updated on Jul 14, 2025
Latest Version
5.16.7
Package Id
@consolecore/rjsf-validator-ajv8@5.16.7
Unpacked Size
299.74 kB
Size
64.40 kB
File Count
53
NPM Version
9.6.7
Node Version
18.17.0
Published on
Aug 21, 2024
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
4
1
18
AJV-8 based validator plugin for react-jsonschema-form
.
Explore the docs »
View Playground
·
Report Bug
·
Request Feature
Exports validator-ajv8
plugin for react-jsonschema-form
.
@consolecore/rjsf-utils >= 5.0.0
1yarn add @rjsf/core
1yarn add @rjsf/validator-ajv8
1import { RJSFSchema } from 'packages/utils/dist/index'; 2import Form from 'packages/core/dist/index'; 3import validator from '@rjsf/validator-ajv8'; 4 5const schema: RJSFSchema = { 6 type: 'string', 7}; 8 9<Form schema={schema} validator={validator} />;
or, using a more complex example using custom validator with custom formats
1import { RJSFSchema } from '@consolecore/rjsf-utils'; 2import Form from '@rjsf/core'; 3import { customizeValidator } from '@rjsf/validator-ajv8'; 4 5const customFormats = { 6 'phone-us': /\(?\d{3}\)?[\s-]?\d{3}[\s-]?\d{4}$/, 7}; 8 9const validator = customizeValidator({ 10 customFormats, 11}); 12 13const schema: RJSFSchema = { 14 type: 'string', 15 format: 'phone-us', 16}; 17 18<Form schema={schema} validator={validator} />;
or, using a more complex example using a custom with additional meta schema
1import { RJSFSchema } from '@consolecore/rjsf-utils'; 2import Form from '@rjsf/core'; 3import { customizeValidator } from '@rjsf/validator-ajv8'; 4 5const metaSchemaDraft06 = require('ajv/lib/refs/json-schema-draft-06.json'); 6 7const validator = customizeValidator({ 8 additionalMetaSchemas: [metaSchemaDraft06], 9}); 10 11const schema: RJSFSchema = { 12 $schema: 'http://json-schema.org/draft-06/schema#', 13 type: 'string', 14}; 15 16<Form schema={schema} validator={validator} />;
or, using a more complex example using custom validator config override options
1import { RJSFSchema } from '@consolecore/rjsf-utils'; 2import Form from '@rjsf/core'; 3import { customizeValidator } from '@rjsf/validator-ajv8'; 4 5const validator = customizeValidator({ 6 ajvOptionsOverrides: { 7 $data: true, 8 verbose: true, 9 }, 10}); 11 12const schema: RJSFSchema = { 13 type: 'string', 14}; 15 16<Form schema={schema} validator={validator} />;
or, using a more complex example using ajv-formats
custom format options.
1import { RJSFSchema } from '@consolecore/rjsf-utils'; 2import Form from '@rjsf/core'; 3import { customizeValidator } from '@rjsf/validator-ajv8'; 4 5const validator = customizeValidator({ 6 ajvFormatOptions: { 7 keywords: true, 8 formats: ['date', 'time'], 9 }, 10}); 11 12const schema: RJSFSchema = { 13 type: 'string', 14}; 15 16<Form schema={schema} validator={validator} />;
Finally, you can combine both additional meta schemas, custom formats, custom validator config override options and ajv-formats
custom format options.
1import { RJSFSchema } from '@consolecore/rjsf-utils'; 2import Form from '@rjsf/core'; 3import { customizeValidator } from '@rjsf/validator-ajv8'; 4 5const metaSchemaDraft06 = require('ajv/lib/refs/json-schema-draft-06.json'); 6 7const customFormats = { 8 'phone-us': /\(?\d{3}\)?[\s-]?\d{3}[\s-]?\d{4}$/, 9}; 10 11const validator = customizeValidator({ 12 additionalMetaSchemas: [metaSchemaDraft06], 13 customFormats, 14 ajvOptionsOverrides: { 15 $data: true, 16 verbose: true, 17 }, 18 ajvFormatOptions: { 19 keywords: true, 20 formats: ['date', 'time'], 21 }, 22}); 23 24const schema: RJSFSchema = { 25 $schema: 'http://json-schema.org/draft-06/schema#', 26 type: 'string', 27 format: 'phone-us', 28}; 29 30<Form schema={schema} validator={validator} />;
See the open issues for a list of proposed features (and known issues).
Read our contributors' guide to get started.
rjsf team: https://github.com/orgs/rjsf-team/people
GitHub repository: https://github.com/rjsf-team/react-jsonschema-form
No vulnerabilities found.
Reason
security policy file detected
Details
Reason
30 commit(s) and 11 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
no binaries found in the repo
Reason
Found 26/28 approved changesets -- score normalized to 9
Reason
3 existing vulnerabilities detected
Details
Reason
badge detected: InProgress
Reason
dependency not pinned by hash detected -- score normalized to 1
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More