DATAREST-1479 - Patching collections now also works for nested collections.

We now properly use the PropertyPath's leaf property to check whether we need to deal with a collection in JSON Patch pointers.
This commit is contained in:
Oliver Drotbohm
2020-04-27 23:45:58 +02:00
parent 32aef5de7b
commit 399c846378
2 changed files with 29 additions and 1 deletions

View File

@@ -554,7 +554,7 @@ class SpelPath {
return nested(segment);
}
TypeInformation<?> typeInformation = basePath.getTypeInformation();
TypeInformation<?> typeInformation = basePath.getLeafProperty().getTypeInformation();
if (typeInformation.isMap()) {