tfausak / rattletrap

:car: Parse and generate Rocket League replays.
https://hackage.haskell.org/package/rattletrap
MIT License
150 stars 21 forks source link

Exercise schema in CI #225

Closed tfausak closed 3 years ago

tfausak commented 3 years ago

It would be nice to test the JSON output against the schema in CI. That way I can make sure the JSON I'm generating actually matches the schema I'm producing. Also it will make sure I haven't broken the schema itself.

I think I can use AJV for this. I'm not sure if it will be annoying to get a JS tool into my otherwise Haskell CI pipeline.

tfausak commented 3 years ago

Ideally this would be part of the actual test suite, but I'm not aware of a JSON schema validator in Haskell.