FHIR / sql-on-fhir-v2

This project provides the source for the SQL on FHIR v2.0 Implementation Guide
https://build.fhir.org/ig/FHIR/sql-on-fhir-v2/
MIT License
100 stars 27 forks source link

Add test schema #209

Closed johngrimes closed 8 months ago

johngrimes commented 8 months ago

I have added back a JSON schema to define the structure of the tests.

I actually removed the part that defines the content of the view. The reason for this is that I figured this was at odds with having validation tests that verify the behaviour of the validation going on within the test runner implementations. If the test contains invalid views, they will be invalid tests and therefore never be able to be used to test the runners.

I also added a step to the CI workflow to run this automatically.

Resolves #197.

Yngwarr commented 8 months ago

Thank you! I've added ajv-cli dependency for the validation step to succeed in CI.