Skip to content

Instantly share code, notes, and snippets.

@terary
Last active April 21, 2025 00:20
Show Gist options
  • Save terary/d206048dfa4e0968526e6afa1c1f8753 to your computer and use it in GitHub Desktop.
Save terary/d206048dfa4e0968526e6afa1c1f8753 to your computer and use it in GitHub Desktop.
{
"subjectDictionary": {
"182513672": {
"label": "Short Answer",
"fieldType": "text"
},
"182513688": {
"label": "Parent/Section",
"fieldType": "section"
},
"182513690": {
"label": "ChildA",
"fieldType": "select"
},
"182513692": {
"label": "ChildB",
"fieldType": "select"
},
"182514529": {
"label": "Parent",
"fieldType": "section"
},
"182514635": {
"label": "ChildA.0",
"fieldType": "select"
},
"182514636": {
"label": "ChildB.0",
"fieldType": "select"
},
"182514637": {
"label": "ChildA.1",
"fieldType": "select"
},
"182515048": {
"label": "Circular Section A",
"fieldType": "section"
},
"182549906": {
"label": "Circular Section B",
"fieldType": "section"
},
"182549907": {
"label": "circular section A DD",
"fieldType": "select"
},
"182549908": {
"label": "circular section B DD",
"fieldType": "select"
},
"182553311": {
"label": "Simple - logic - Depends on Switzerland",
"fieldType": "section"
},
"182553313": {
"label": "Switerland",
"fieldType": "checkbox"
},
"182553376": {
"label": "Switzerland In A box (section)",
"fieldType": "section"
},
"182553377": {
"label": "Simple - logic - Depends on Switzerland In a Box",
"fieldType": "section"
},
"182553380": {
"label": "Switzerland In A box (field)",
"fieldType": "checkbox"
},
"182553413": {
"label": "Child of Section that depends on Switzerland in a box",
"fieldType": "text"
},
"182710776": {
"label": "Simple Ring",
"fieldType": "section"
},
"182710784": {
"label": "SimpleRingFieldA",
"fieldType": "checkbox"
},
"182710785": {
"label": "SimpleRingFieldE",
"fieldType": "checkbox"
},
"182710786": {
"label": "SimpleRingFieldD",
"fieldType": "checkbox"
},
"182710787": {
"label": "SimpleRingFieldC",
"fieldType": "checkbox"
},
"182710788": {
"label": "SimpleRingFieldB",
"fieldType": "checkbox"
}
},
"pojo182513690": {
"182513690": {
"parentId": "182513690",
"nodeContent": {
"isVirtualRoot": true,
"operator": "$and",
"directOwnerFieldId": "182513690"
}
},
"182513690:0": {
"parentId": "182513690",
"nodeContent": {
"operator": "$and",
"isOwnBranch": true,
"directOwnerFieldId": "182513690",
"originalJson": {
"action": "show",
"conditional": "all",
"checks": [
{
"condition": "equals",
"option": "ChildA",
"fieldId": "182513690"
}
]
}
}
},
"182513690:0:1": {
"parentId": "182513690:0",
"nodeContent": {
"operator": "equals",
"subjectId": "182513692",
"value": "ChildB",
"directOwnerFieldId": "182513692"
}
},
"182513690:0:2": {
"parentId": "182513690:0",
"nodeContent": {
"operator": "$and",
"isParentBranch": true,
"directOwnerFieldId": "182513692",
"originalJson": {
"action": "show",
"conditional": "all",
"checks": [
{
"condition": "equals",
"option": "ChildA",
"fieldId": "182513690"
}
]
}
}
},
"182513690:0:2:3": {
"parentId": "182513690:0:2",
"nodeContent": {
"operator": "equals",
"subjectId": "182513690",
"value": "ChildA",
"directOwnerFieldId": "182513690"
}
},
"182513690:0:2:4": {
"parentId": "182513690:0:2",
"nodeContent": {
"directOwnerFieldId": "182513692",
"existingNodeId": "182513690:0:2",
"circularReferenceId": "ff8078fb-8ed7-4078-b642-2fc038663fff",
"message": "Can not add 'ChildB' 182513692 check: {junction}->{\"condition\":\"equals\",\"option\":\"ChildA\",\"fieldId\":\"182513690\"}.\n This term is already in the expression {fieldId} {junction}->{check} and therefore refer back to itself (circular reference).\n \n offending field visibility logic:\n {\"own\":null,\"parent\":{\"action\":\"show\",\"conditional\":\"all\",\"checks\":[{\"condition\":\"equals\",\"option\":\"ChildA\",\"fieldId\":\"182513690\"}]}}\n\n offending own checks:\n []\n\n offending parent checks:\n [{\"condition\":\"equals\",\"option\":\"ChildA\",\"fieldId\":\"182513690\"}]\n\n\n "
}
},
"182513690:0:2:5": {
"parentId": "182513690:0:2",
"nodeContent": {
"directOwnerFieldId": "182513690",
"existingNodeId": "182513690:0:2",
"circularReferenceId": "ff8078fb-8ed7-4078-b642-2fc038663fff",
"message": "Can not add 'ChildB' 182513692 check: {junction}->{\"condition\":\"equals\",\"option\":\"ChildA\",\"fieldId\":\"182513690\"}.\n This term is already in the expression {fieldId} {junction}->{check} and therefore refer back to itself (circular reference).\n \n offending field visibility logic:\n {\"own\":null,\"parent\":{\"action\":\"show\",\"conditional\":\"all\",\"checks\":[{\"condition\":\"equals\",\"option\":\"ChildA\",\"fieldId\":\"182513690\"}]}}\n\n offending own checks:\n []\n\n offending parent checks:\n [{\"condition\":\"equals\",\"option\":\"ChildA\",\"fieldId\":\"182513690\"}]\n\n\n "
}
},
"182513690:6": {
"parentId": "182513690",
"nodeContent": {
"operator": "$and",
"isParentBranch": true,
"directOwnerFieldId": "182513690",
"originalJson": {
"action": "show",
"conditional": "all",
"checks": [
{
"condition": "equals",
"option": "ChildA",
"fieldId": "182513690"
}
]
}
}
},
"182513690:6:7": {
"parentId": "182513690:6",
"nodeContent": {
"operator": "equals",
"subjectId": "182513690",
"value": "ChildA",
"directOwnerFieldId": "182513690"
}
},
"182513690:6:8": {
"parentId": "182513690:6",
"nodeContent": {
"directOwnerFieldId": "182513690",
"existingNodeId": "182513690:6",
"circularReferenceId": "afcf244a-80ed-4185-b9a3-68e7b2a6ba18",
"message": "Can not add 'ChildA' 182513690 check: {junction}->{\"condition\":\"equals\",\"option\":\"ChildA\",\"fieldId\":\"182513690\"}.\n This term is already in the expression {fieldId} {junction}->{check} and therefore refer back to itself (circular reference).\n \n offending field visibility logic:\n {\"own\":{\"action\":\"show\",\"conditional\":\"all\",\"checks\":[{\"condition\":\"equals\",\"option\":\"ChildB\",\"fieldId\":\"182513692\"}]},\"parent\":{\"action\":\"show\",\"conditional\":\"all\",\"checks\":[{\"condition\":\"equals\",\"option\":\"ChildA\",\"fieldId\":\"182513690\"}]}}\n\n offending own checks:\n []\n\n offending parent checks:\n [{\"condition\":\"equals\",\"option\":\"ChildA\",\"fieldId\":\"182513690\"}]\n\n\n "
}
},
"182513690:6:9": {
"parentId": "182513690:6",
"nodeContent": {
"directOwnerFieldId": "182513690",
"existingNodeId": "182513690:6",
"circularReferenceId": "afcf244a-80ed-4185-b9a3-68e7b2a6ba18",
"message": "Can not add 'ChildA' 182513690 check: {junction}->{\"condition\":\"equals\",\"option\":\"ChildA\",\"fieldId\":\"182513690\"}.\n This term is already in the expression {fieldId} {junction}->{check} and therefore refer back to itself (circular reference).\n \n offending field visibility logic:\n {\"own\":{\"action\":\"show\",\"conditional\":\"all\",\"checks\":[{\"condition\":\"equals\",\"option\":\"ChildB\",\"fieldId\":\"182513692\"}]},\"parent\":{\"action\":\"show\",\"conditional\":\"all\",\"checks\":[{\"condition\":\"equals\",\"option\":\"ChildA\",\"fieldId\":\"182513690\"}]}}\n\n offending own checks:\n []\n\n offending parent checks:\n [{\"condition\":\"equals\",\"option\":\"ChildA\",\"fieldId\":\"182513690\"}]\n\n\n "
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment