Skip to content

Commit

Permalink
fix: fixed filtering on non-existing values not throwing an error, fixes
Browse files Browse the repository at this point in the history
 #374

trying to filter on a non-existing field will now throw an exception, in case of inconsistent source data "has('propertyname')" and "get('propertyname')" can be used as workaround
  • Loading branch information
psmf22 authored Jul 31, 2023
1 parent b020015 commit 4cd2e5d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public boolean canRead(EvaluationContext context, Object target, String name) th
if (node instanceof ArrayNode) {
return index != null;
}
return true;
return node.has(name);
}

private JsonNode asJson(Object target) throws AccessException {
Expand Down

0 comments on commit 4cd2e5d

Please sign in to comment.