MCPcopy
hub / github.com/Effect-TS/effect / getAjvValidate

Function getAjvValidate

packages/effect/test/Schema/JSONSchema.new.test.ts:16–18  ·  view source on GitHub ↗
(jsonSchema: object)

Source from the content-addressed store, hash-verified

14}
15
16function getAjvValidate(jsonSchema: object): Ajv.ValidateFunction {
17 return new Ajv.default(ajvOptions).compile(jsonSchema)
18}
19
20const baseAjvOptions: AjvOptions = {
21 allErrors: true,

Callers 2

assertAjvDraft7SuccessFunction · 0.70
assertAjvDraft7FailureFunction · 0.70

Calls 1

compileMethod · 0.45

Tested by

no test coverage detected