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

Function parseCode

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

Source from the content-addressed store, hash-verified

104}
105
106function parseCode(cxt: ParseCxt): void {
107 let form: JTDForm | undefined
108 for (const key of jtdForms) {
109 if (key in cxt.schema) {
110 form = key
111 break
112 }
113 }
114 if (form) parseNullable(cxt, genParse[form])
115 else parseEmpty(cxt)
116}
117
118const parseBoolean = parseBooleanToken(true, parseBooleanToken(false, jsonSyntaxError))
119

Callers 4

parserFunctionFunction · 0.85
parseElementsFunction · 0.85
parsePropertyValueFunction · 0.85
parseRefFunction · 0.85

Calls 2

parseNullableFunction · 0.85
parseEmptyFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…