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

Method subschema

docs/scripts/ajv-validator.js:3193–3200  ·  view source on GitHub ↗
(appl, valid)

Source from the content-addressed store, hash-verified

3191 }
3192 }
3193 subschema(appl, valid) {
3194 const subschema = (0, subschema_1.getSubschema)(this.it, appl);
3195 (0, subschema_1.extendSubschemaData)(subschema, this.it, appl);
3196 (0, subschema_1.extendSubschemaMode)(subschema, appl);
3197 const nextContext = { ...this.it, ...subschema, items: undefined, props: undefined };
3198 subschemaCode(nextContext, valid);
3199 return nextContext;
3200 }
3201 mergeEvaluated(schemaCxt, toName) {
3202 const { it, gen } = this;
3203 if (!it.opts.unevaluated)

Callers 15

macroKeywordCodeFunction · 0.80
validateItemsFunction · 0.80
applyAdditionalSchemaFunction · 0.80
codeFunction · 0.80
validateSchemaDepsFunction · 0.80
validateIfFunction · 0.80
validateClauseFunction · 0.80
validateTupleFunction · 0.80
validateOneOfFunction · 0.80
validatePropertiesFunction · 0.80
applyPropertySchemaFunction · 0.80
validateUnionFunction · 0.80

Calls 1

subschemaCodeFunction · 0.85

Tested by

no test coverage detected