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

Function spec

spec/issues/8_shared_refs.spec.ts:43–50  ·  view source on GitHub ↗
(ajv: AjvCore | AjvPack)

Source from the content-addressed store, hash-verified

41 })
42
43 function spec(ajv: AjvCore | AjvPack): void {
44 let result = ajv.validate("obj.json#", {foo: "abc", bar: "def"})
45 result.should.equal(true)
46
47 result = ajv.validate("obj.json#", {foo: "abcde", bar: "fghg"})
48 result.should.equal(false)
49 ajv.errors?.should.have.length(1)
50 }
51})

Callers 1

Calls 1

validateMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…