-
Notifications
You must be signed in to change notification settings - Fork 312
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
Revise JSONPath options in GraphQlTester #278
Comments
GraphQlTester.PathSpec#is(Not)Null()
methodGraphQlTester.PathSpec#is(Not)Null()
methods
I've made a small adjustment in 2095e17. That aside, you can use Apart from trying to keep the combinations down, |
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed. |
The concepts of absence and null are clearly separated in the spec: https://spec.graphql.org/draft/#sel-FAHlBFDCAACEMnwN
It talks about "optional" fields (the absence of a field). and Non-Null/Null fields, aka "field is present but null" These two states should both be assert-able separately |
On further thought and review, I'm going to re-purpose this for a broader update of the available options. The current choice is confusing, with some options overlapping, As far as I can see, the following should suffice:
Note, the For anything beyond, there is |
GraphQlTester.PathSpec#is(Not)Null()
methods
Sounds great, exactly what the issue was aimed at, thank you! |
The existing methods do not cover this case. The
valueIsEmpty
andvalueIsNotEmpty
methods do way more checks.The text was updated successfully, but these errors were encountered: