runc/schema
Qiang Huang 38b7860096 Fix example in schema README
We should only download dependence without installing,
otherwise we'll probably get error:
go install: no install location for directory /home/qhuang/specs/schema outside GOPATH
        For more details see: go help gopath

Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
2016-04-14 10:39:12 +08:00
..
Makefile schema: JSON Schema and validator for `config.json` 2016-03-09 19:32:52 +00:00
README.md Fix example in schema README 2016-04-14 10:39:12 +08:00
defs-linux.json schema: updates and fixes 2016-04-07 10:13:39 -04:00
defs.json schema: JSON Schema and validator for `config.json` 2016-03-09 19:32:52 +00:00
schema-linux.json schema: updates and fixes 2016-04-07 10:13:39 -04:00
schema.json schema: updates and fixes 2016-04-07 10:13:39 -04:00
validate.go schema: add a README 2016-04-13 13:44:34 -04:00

README.md

JSON schema

Overview

This directory contains the JSON Schema for validating the config.json of this container runtime specification.

The layout of the files is as follows:

Utility

There is also included a simple utility for facilitating validation of a config.json. To build it:

export GOPATH=`mktemp -d`
go get -d ./...
go build .
rm -rf $GOPATH

Then use it like:

./schema schema.json <yourpath>/config.json