This repository contains static data needed for clients.
Open a PR modifying JSON file.
Once merged to master the new version of the data will be automatically available thanks to GitHub Pages.
You can modify the events/all.json file, and the result will be deployed in https://fp-in-bo.github.io/data/events/all.json
Manual JSON editing is error-prone, so we check JSON files in continuous integration.
The script is written using kscript and it's embedding kscript installer so you execute it with:
scripts/validateJson.kts events/all.json
It will download all required dependencies on the first run.
Kscript can also produce standalone binaries containing a compiled copy of the script, as well as all declared dependencies (fatjar).
On Travis we are executing the script in this way, so if you need to modify it, remember to update also the binary version using
kscript --package validateJson.kts