danprince / midas

🫅 Traditional roguelike where everything you touch turns to gold.
https://danprince.itch.io/midas
2 stars 0 forks source link

JSON Data Validators #35

Open danprince opened 4 years ago

danprince commented 4 years ago

It'd be handy to generate JSON schemas from the TypeScript interfaces so that the JSON files in the data directory could be typechecked.

Would probably do it as a single script that generates the schema and validates with it in one pass. Doesn't need to run all that often and it'd be nicer to not have to keep the schemas in the repo and synced to the interfaces.