MCPcopy
hub / github.com/ajv-validator/ajv / validate

Function validate

spec/issues/181_allErrors_custom_keyword_skipped.spec.ts:19–29  ·  view source on GitHub ↗
(/* value */)

Source from the content-addressed store, hash-verified

17
18 it("should validate keyword that creates errors", () => {
19 const validate: SchemaValidateFunction = (/* value */) => {
20 validate.errors = validate.errors || []
21 validate.errors.push({
22 keyword: "alwaysFails",
23 message: "alwaysFails error",
24 params: {
25 keyword: "alwaysFails",
26 },
27 })
28 return false
29 }
30
31 testKeywordErrors({
32 keyword: "alwaysFails",

Callers 15

testFunction · 0.85
jtd.jsFile · 0.85
testTreeFunction · 0.85
testFunction · 0.85
testSchemaFunction · 0.85
resolve.spec.tsFile · 0.85
testObjSchemaFunction · 0.85
testListSchemaFunction · 0.85
testFunction · 0.85
testTimestampFunction · 0.85
testExportFunction · 0.85
ajv.spec.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…