-
Notifications
You must be signed in to change notification settings - Fork 25
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
Is it possible to provide JSONPath test cases based on consensus results #104
Comments
Please note that the JSONPath standard will not necessarily support all cases of consensus in this project. Or, to answer the question in the title of this issue: no. |
@glyn I agree but I think test-cases based on https://github.com/ietf-wg-jsonpath/draft-ietf-jsonpath-base are still needed. Or the standard itself contains examples, like JSONPointer does. |
Agreed. Please see https://github.com/jsonpath-standard/jsonpath-compliance-test-suite, which is currently not making progress. I stopped work on this to concentrate on editing. One of the most significant hurdles to be overcome is how to cope with non-determinism in the spec (discussed in ietf-wg-jsonpath/draft-ietf-jsonpath-base#60), possibly by allowing tests to specify multiple possible results. |
@glyn Thanks for the info, I think when standards and test suites influence each other. |
In the meantime, we do have https://github.com/cburgmer/json-path-comparison/blob/master/regression_suite/regression_suite.yaml. |
Thanks for the suggestion. I haven't thought it through yet... |
First of all, thanks to the author for his wonderful contribution.
Now that we have a consensus result, is it possible to create a standard test case for JSONPath, the format might look like this:
This way any implementor of the JSONPath standard can be used to validate their own implementation, just like json-patch-tests.
If this project can already do what I describe, please let me know, thank you.
The text was updated successfully, but these errors were encountered: