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

Function jsonSyntaxError

lib/compile/jtd/parse.ts:403–405  ·  view source on GitHub ↗
(cxt: ParseCxt)

Source from the content-addressed store, hash-verified

401}
402
403function jsonSyntaxError(cxt: ParseCxt): void {
404 parsingError(cxt, _`"unexpected token " + ${N.json}[${N.jsonPos}]`)
405}
406
407function parsingError({gen, parseName}: ParseCxt, msg: Code): void {
408 gen.assign(_`${parseName}.message`, msg)

Callers 3

parserFunctionFunction · 0.85
parseEnumFunction · 0.85
parseNumberFunction · 0.85

Calls 2

_Function · 0.90
parsingErrorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…