Skip to content

Commit

Permalink
Include uper level pointers of change events for receiving feature ev…
Browse files Browse the repository at this point in the history
…ents, even if only one subpath is existent

Signed-off-by: David Schwilk <david.schwilk@bosch.io>
  • Loading branch information
DerSchwilk committed Nov 10, 2020
1 parent 95b4f2c commit 0e34ddd
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,7 @@ private static List<JsonPointer> calculateJsonPointerHierarchy(final JsonPointer
if (value.isObject()) {
final List<JsonPointer> pointersOnLevel = new ArrayList<>();
final JsonObject objectOnLevel = value.asObject();
if (objectOnLevel.getSize() > 1) {
// if more than one sub-fields are contained in the object on this level, we add the "parent"
// aggregating both of the changed fields:
pointersOnLevel.add(pointerOnLevel);
}

// recurse further "down":
pointersOnLevel.addAll(calculateJsonPointerHierarchy(pointerOnLevel, objectOnLevel));
Expand Down

0 comments on commit 0e34ddd

Please sign in to comment.