quicktype icon indicating copy to clipboard operation
quicktype copied to clipboard

Add the JSON Schema test suite

Open schani opened this issue 7 years ago • 2 comments

We should be able to parse all valid test cases.

https://github.com/json-schema-org/JSON-Schema-Test-Suite

schani avatar Jul 14 '18 14:07 schani

hi, @schani can I give it a try?

snehaljos avatar Mar 21 '22 09:03 snehaljos

Hi @snehaljos! For sure!

There are two main parts to this:

  1. You'll have to write a driver (I suggest adding an extra command line option to main in test.ts) that loops through all the JSON Schema test files, and for each test schema in each of the files, run quicktype and produce JS output. It shouldn't crash.
  2. Now for each of the schemas, run the JS output on each of the tests that has valid: true. They should all succeed.

schani avatar Mar 21 '22 11:03 schani