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

Method scopeValue

docs/scripts/ajv-validator.js:1099–1104  ·  view source on GitHub ↗
(prefixOrName, value)

Source from the content-addressed store, hash-verified

1097 }
1098 // reserves unique name in the external scope and assigns value to it
1099 scopeValue(prefixOrName, value) {
1100 const name = this._extScope.value(prefixOrName, value);
1101 const vs = this._values[name.prefix] || (this._values[name.prefix] = new Set());
1102 vs.add(name);
1103 return name;
1104 }
1105 getScopeValue(prefix, keyOrRef) {
1106 return this._extScope.getValue(prefix, keyOrRef);
1107 }

Callers 13

compileSchemaFunction · 0.95
validate$DataFormatFunction · 0.80
validateFormatFunction · 0.80
useFuncFunction · 0.80
commentKeywordFunction · 0.80
invalid$DataSchemaMethod · 0.80
useKeywordFunction · 0.80
hasPropFuncFunction · 0.80
usePatternFunction · 0.80
callRootRefFunction · 0.80
inlineRefSchemaFunction · 0.80
getValidateFunction · 0.80

Calls 2

valueMethod · 0.80
addMethod · 0.80

Tested by

no test coverage detected