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

Function testMissingSchemaError

spec/resolve.spec.ts:266–280  ·  view source on GitHub ↗
(opts)

Source from the content-addressed store, hash-verified

264 })
265
266 function testMissingSchemaError(opts) {
267 instances.forEach((ajv) => {
268 try {
269 ajv.compile({
270 $id: opts.baseId,
271 type: "object",
272 properties: {a: {$ref: opts.ref}},
273 })
274 } catch (err) {
275 const e = err as MissingRefError
276 e.missingRef.should.equal(opts.expectedMissingRef)
277 e.missingSchema.should.equal(opts.expectedMissingSchema)
278 }
279 })
280 }
281 })
282
283 describe("inline referenced schemas without refs in them", () => {

Callers 1

resolve.spec.tsFile · 0.85

Calls 1

compileMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…