Thank you already to contributing to project! We trying make contributing as easier as possible.
Merge requests are the best way to propose changes to the codebase. We actively welcome your merge requests:
- Fork the repo and create your branch from
main
- If you've added code that should be tested, add tests.
- Ensure the tests pass.
- Make sure your code lints.
- Merge request
All the data is managed throught a series of Json files.
To add new data files to get familiar how to set up. The file name should named as country name example finland.json
. If there is space between name like United Kingdon, use underscore united_kingdom.json
.
Full JSON schema is documented in Wiki
To test locally the schema, you need install some NodeJS packages
yarn global add ajv-cli ajv-formats
Move to src/data
directory and run command to test JSON files against schema.
cd src/data
ajv test -s schemas/country.schema -d "countries/*.json" -c ajv-formats --valid --verbose --all-errors
This should return something like countries/finland.json
passed test.
Report bugs in issues. Just create new issue and report details and steps to repeat the issue.