@narrative.io/data-collaboration-sdk-ts 2.66.0 → 2.67.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -58,11 +58,10 @@ function traverseSatisfiedStructure(node, attributeByName, visitor) {
|
|
|
58
58
|
return;
|
|
59
59
|
}
|
|
60
60
|
if ("anyOf" in node && Array.isArray(node.anyOf)) {
|
|
61
|
-
// For anyOf,
|
|
61
|
+
// For anyOf, traverse ALL satisfied branches
|
|
62
62
|
for (const child of node.anyOf) {
|
|
63
63
|
if (isBranchSatisfied(child, attributeByName)) {
|
|
64
64
|
traverseSatisfiedStructure(child, attributeByName, visitor);
|
|
65
|
-
return; // Only process the first satisfied branch
|
|
66
65
|
}
|
|
67
66
|
}
|
|
68
67
|
return;
|