To help you make sure that your manifest file is correct and complete, validate it against our schema file.
You can find the most updated schema in our GitHub repository (and you are welcome to suggest changes/updates).
- Go to jsonschemavalidator.net or similar service.
- Copy-paste the schema's and your manifest.json code into the "Schema" and "Input JSON" windows, respectively.
- Check for any errors or missing data.
Automated schema validation
To better follow the modern practices of CI and CD, we strongly recommend you to automate the validation process using your preferred tools.
We demonstrate here how to do that using one of the popular npm schema validation packages, called ajv-cli. Also, the examples here are tested in the terminal of Visual Studio Code.
The steps which developers should take to validate their manifest.json automatically:
1. Install the npm package
> npm install -g ajv-cli
g- install this package globally and make it available for all your projects.
2. Pull the latest manifest
Download the schema from GitHub and save it as overwolf-manifest-schema.json:
> curl -o overwolf-manifest-schema.json "https://raw.githubusercontent.com/overwolf/community-gists/master/overwolf-manifest-schema.json"
o - output name.
3. Validate the data
Validate your manifest.json against the local schema file that you just downloaded (overwolf-manifest-schema.json):
> ajv validate -s overwolf-manifest-schema.json -d manifest.json