MCPcopy Create free account
hub / github.com/json-editor/json-editor / funcSourceUrl

Function funcSourceUrl

docs/scripts/ajv-validator.js:2842–2845  ·  view source on GitHub ↗
(schema, opts)

Source from the content-addressed store, hash-verified

2840 gen.if((0, codegen_1._) `${it.evaluated}.dynamicItems`, () => gen.assign((0, codegen_1._) `${it.evaluated}.items`, (0, codegen_1._) `undefined`));
2841 }
2842 function funcSourceUrl(schema, opts) {
2843 const schId = typeof schema == "object" && schema[opts.schemaId];
2844 return schId && (opts.code.source || opts.code.process) ? (0, codegen_1._) `/*# sourceURL=${schId} */` : codegen_1.nil;
2845 }
2846// schema compilation - this function is used recursively to generate code for sub-schemas
2847 function subschemaCode(it, valid) {
2848 if (isSchemaObj(it)) {

Callers 1

validateFunctionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected