| 1 | # JSONPath Compliance Test Suite |
| 2 | |
| 3 | **WORK IN PROGRESS** |
| 4 | |
| 5 | This Compliance Test Suite follows, and usually lags behind, the [internet draft](https://github.com/ietf-wg-jsonpath/draft-ietf-jsonpath-jsonpath). |
| 6 | |
| 7 | See [cts.json](cts.json) for the Compliance Test Suite. |
| 8 | |
| 9 | See the [Contributor Guide](./CONTRIBUTING.md) if you'd like to submit changes. |
| 10 | |
| 11 | To use this test suite, it's recommended you embed this repository as a git submodule of your implementation. |
| 12 | |
| 13 | ### Conventions |
| 14 | |
| 15 | Basic conventions around source file formatting are captured in the `.editorconfig` file. |
| 16 | Many editors support that file natively. Others (such as VS code) require a plugin, see https://editorconfig.org/. |
| 17 | |
| 18 | ### Contributing |
| 19 | |
| 20 | To add or modify a test suite, edit the corresponding file in the `tests` directory. |
| 21 | To generate `cts.json`, run the `build.sh` located in the root folder. Do not modify `cts.json` directly. |
| 22 | More details are available in the [Contributor Guide](./CONTRIBUTING.md). |
| 23 | |
| 24 | ### Non-determinism |
| 25 | |
| 26 | Where the spec allows non-deterministic results for a given testcase, the testcase should specify an array of all the valid results (each of which is itself an array representing the resultant nodelist from the query) in the "results" member (and should not specify a "result" member). |