MCPcopy Create free account
hub / github.com/eclipsesource/jsonforms / createAjv

Function createAjv

packages/core/src/util/validator.ts:29–39  ·  view source on GitHub ↗
(options?: Options)

Source from the content-addressed store, hash-verified

27import type { ErrorObject, Options, ValidateFunction } from 'ajv';
28
29export const createAjv = (options?: Options) => {
30 const ajv = new Ajv({
31 allErrors: true,
32 verbose: true,
33 strict: false,
34 addUsedSchema: false,
35 ...options,
36 });
37 addFormats(ajv);
38 return ajv;
39};
40
41export const validate = (
42 validator: ValidateFunction | undefined,

Callers 10

JsonForms.test.tsxFile · 0.90
initCoreFunction · 0.90
core.test.tsFile · 0.90
cell.test.tsFile · 0.90
renderer.test.tsFile · 0.90
runtime.test.tsFile · 0.90
getOrCreateAjvFunction · 0.90
initCoreFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…