Closed christian-herber closed 3 years ago
This is related to #91 and has to do with the new expand_keys
argument of the json_pointer
method.
My proposal is to remove this argument, but also modify all instance-related exceptions (such as SematicError
) to have the offending instance as its member, instead of path
(JSON pointer). An exception handler could then inspect the instance directly.
@kwatsen @HRogge any thoughts on this?
Fixed by PR #97 (merged in 1.4.0)
When validating data, I am sometimes faced with the situation that the expression passed to the SematicError actually raises another error:
This could be an issue in other functionalities also, but here it is a bit annoying, because the Semantic Error cannot be reported. In this specific case, I have a LeafList with LeafRefs to an Integer node.
My proposal would be to change
to