Commit Graph

4 Commits

Author SHA1 Message Date
W. Trevor King 1db50f5468 schema/validate: Allow schema identifiers to contain a URL scheme
And only fall back to assuming they're a local file if they don't
already contain :// (which is unlikely to show up in local paths).
This makes it easy to validate configurations against different
versions of the JSON Schema (e.g. v0.5.0 or v1.0.0-rc1).

Signed-off-by: W. Trevor King <wking@tremily.us>
2016-06-05 23:53:28 -07:00
W. Trevor King 8ca7174c10 schema/validate: Support reading documents via stdin
Signed-off-by: W. Trevor King <wking@tremily.us>
2016-06-01 16:11:36 -07:00
Vincent Batts 9da17282d9 schema: add a README
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2016-04-13 13:44:34 -04:00
Vincent Batts cdcabdeb6b schema: JSON Schema and validator for `config.json`
Conforming to https://tools.ietf.org/html/draft-zyp-json-schema-03
and http://json-schema.org/latest/json-schema-core.html

* Utilizes a number of JSON schema features, including 'pattern'
* Defined primitives, like integers, that we'll use
* Split out definitions for primitives and platform-specific
* Provide a Makefile for:
 - "fmt" target for *.json
 - "validate" target for building the validation tool

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2016-03-09 19:32:52 +00:00