Skip to content

Commit 43f79b9

Browse files
committed
Fix bug in ref resolving...
We need to compute paths relative to the node we already have! BACKPORT: 0.1
1 parent 11e2ca5 commit 43f79b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/eel/kitchen/jsonschema/context/ValidationContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ private JsonNode resolvePath(final JsonNode schema, final String jsonPath)
306306
for (final String pathElement: SPLIT_PATTERN.split(jsonPath)) {
307307
if (pathElement.isEmpty())
308308
continue;
309-
ret = schema.path(pathElement);
309+
ret = ret.path(pathElement);
310310
}
311311

312312
if (ret.isMissingNode())

0 commit comments

Comments
 (0)