CLI wrapper for Newtonsoft.Json.Schema
Install dotnet core 2
To use the app just grab a zip from Releases folder and run dotnet JsonSchemaValidator.dll [pathToSchemaFile] [pathToJsonToValidate]
Validation errors will be output to the command line.
You can test the app by running it on FruitDb.schema.json
and FruitDb.json
from this repo.
- Open in Visual studio 2017 (or vim?)
- Change what you want
- Publish the app (from VS or run
dotnet publish -c Release
) - Copy all files in the publish folder to
/var/lib/json-validator
- Run
chmod o+x /var/lib/json-validator/*.dll