How to fix the issue:
When being zoomed into a path (current path is set to something other than root ("[]"), then the schema diagram should detect whether the current sub-schema uses references to paths outside. If that is the case, these references should be somehow still shown. Merging them into the sub-schema might seem like a good idea, however when editing them the user would edit copies and not the real reference definitions. Hence, maybe a new approach is needed: possibly show whole graph and just hide the nodes not relevant for the current path. Maybe on schema level: remove all JSON objects/arrays not relevant for rendering.
How to fix the issue:
When being zoomed into a path (current path is set to something other than root ("[]"), then the schema diagram should detect whether the current sub-schema uses references to paths outside. If that is the case, these references should be somehow still shown. Merging them into the sub-schema might seem like a good idea, however when editing them the user would edit copies and not the real reference definitions. Hence, maybe a new approach is needed: possibly show whole graph and just hide the nodes not relevant for the current path. Maybe on schema level: remove all JSON objects/arrays not relevant for rendering.