runc/schema
W. Trevor King 59ede1a6ac schema: Move schema.json -> config-schema.json and similar
To make it clear that these schemas are for validating config.json
(and not, for example, state JSON).  I've left the IDs alone for now,
because my PR adjusting those was rejected [1].

The rule for the -schema portion is "use it for entrypoint files" [2].

[1]: https://github.com/opencontainers/runtime-spec/pull/453
[2]: https://github.com/opencontainers/runtime-spec/pull/481#issuecomment-223641814

Signed-off-by: W. Trevor King <wking@tremily.us>
2016-06-08 20:43:06 -07:00
..
Makefile Modify README to keep consistency with Makefile 2016-04-14 12:33:17 +08:00
README.md schema: Move schema.json -> config-schema.json and similar 2016-06-08 20:43:06 -07:00
config-linux.json schema: Move schema.json -> config-schema.json and similar 2016-06-08 20:43:06 -07:00
config-schema.json schema: Move schema.json -> config-schema.json and similar 2016-06-08 20:43:06 -07:00
config-solaris.json schema: Move schema.json -> config-schema.json and similar 2016-06-08 20:43:06 -07:00
defs-linux.json *: add support for cgroup namespace 2016-06-04 00:14:39 +10:00
defs.json schema: JSON Schema and validator for `config.json` 2016-03-09 19:32:52 +00:00
validate.go schema/validate: Support reading documents via stdin 2016-06-01 16:11:36 -07:00

README.md

JSON schema

Overview

This directory contains the JSON Schema for validating JSON covered by this specification.

The layout of the files is as follows:

Utility

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

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

Or you can just use make command to create the utility:

make validate

Then use it like:

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