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

Function testListSchema

spec/resolve.spec.ts:397–401  ·  view source on GitHub ↗
(validate)

Source from the content-addressed store, hash-verified

395 }
396
397 function testListSchema(validate) {
398 validate([{a: 3}]).should.equal(true)
399 validate([{a: 1}]).should.equal(false)
400 validate([{a: 5}]).should.equal(false)
401 }
402
403 function testInlined(validate: AnyValidateFunction, expectedInlined) {
404 const inlined: any = !validate.source?.scopeValues.validate

Callers 1

testSchemasFunction · 0.85

Calls 1

validateFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…