jsonpath-standard / jsonpath-compliance-test-suite

A Compliance Test Suite for the JSONPath Internet Draft
Other
9 stars 6 forks source link

Is it possible to provide other language implementation? #74

Open He-Pin opened 6 months ago

He-Pin commented 6 months ago

Motivation: I'm using Java, is it possible to provide a suite for Java, thanks.

He-Pin commented 6 months ago

I'm using dynamicTest of Junit5, it's works, thanks.

gregsdennis commented 6 months ago

This suite is defined in plain JSON, which should be readable in just about every language. You'll have to build your own test runner though.

My implementation is .Net, so I had to build a runner that reads the cts.json file and processes all of the test cases. You can see the code for it here.

hiltontj commented 6 months ago

I also did something similar to @gregsdennis in serde_json_path (Rust), see here.

f3ath commented 6 months ago

Same in Dart: https://github.com/f3ath/jessie/blob/master/test/helper.dart

aljopainter commented 6 months ago

It's nice to see the different implementations for the new proposed standard. I'm wondering if there is a good place to put a list of implementations for RFC9535.

f3ath commented 6 months ago

I'm not aware of one, but this table would be an appropriate place to have such a list https://cburgmer.github.io/json-path-comparison/

aljopainter commented 6 months ago

I'll see if I can motivate adding a section for implementations that are supposed to be conformant with the new proposed standard.

gregsdennis commented 6 months ago

I already have https://github.com/cburgmer/json-path-comparison/issues/130, but it seems that work on that repo has waned since the spec was released. I think it was intended as just a tool to inform the spec.