-
Couldn't load subscription status.
- Fork 1
[US-642] implement simple queries #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
9a9391a to
2320805
Compare
304bc68 to
691b7be
Compare
| .replaceAll("(\\w)\\?", "$1#") | ||
| .split("#", -1); | ||
| if (pointerAndQuery.length > 2) { | ||
| // TODO use different exception |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when this TODO will be resolved?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Immediately :D used JsonPatchException here, with a new custom message, thanks
| final DocumentContext nodeContext = JsonPath.parse(node.deepCopy()); | ||
|
|
||
| final JsonNode parentNode = nodeContext.read(jsonPath); | ||
| final JsonNode parentNode = nodeContext.read(pathToParent); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
parentNode is confusing name as this can be list of nodes
| } | ||
| final String jsonPath = "$" + path.replace('/', '.') | ||
| final String[] pointerAndQuery = path | ||
| .replaceAll("(\\w)\\?", "$1#") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe consider something less probable as a token?
No description provided.