/jsoncheck

Tool for validating a batch of local or remote JSON documents by schema.

Primary LanguageGoMIT LicenseMIT

jsoncheck

Build Status Go Report Card

Tool for validating a batch of local or remote JSON documents by schemas.

Usage

Download the latest release: https://github.com/vodkabears/jsoncheck/releases/latest

Run:

./jsoncheck [configuration file]

Example of a configuration file

[
	{
		"schema": "schemas/regions.json",
		"data": [
			"http://127.0.0.1:3000/api/regions",
			"http://127.0.0.1:3000/api/regions/?rgid=2"
		]
	},
	{
		"schema": "schemas/offer.json",
		"data": [
			"http://127.0.0.1:3000/api/offer/?id=1",
			"file:///home/me/offer.json"
		]
	}
]