We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a05098 commit c881e9aCopy full SHA for c881e9a
lib/expand.js
@@ -769,9 +769,9 @@ async function _expandObject({
769
770
// @value must not be an object or an array (unless framing) or if @type is
771
// @json
772
- if('@value' in element) {
773
- const value = element['@value'];
774
- if(element['@type'] === '@json' && _processingMode(activeCtx, 1.1)) {
+ if('@value' in expandedParent) {
+ const value = expandedParent['@value'];
+ if(expandedParent['@type'] === '@json' && _processingMode(activeCtx, 1.1)) {
775
// allow any value, to be verified when the object is fully expanded and
776
// the @type is @json.
777
} else if((_isObject(value) || _isArray(value)) && !options.isFrame) {
0 commit comments