7c9daebaa7
Signed-off-by: Abhijeeth Nuthan <abhijeeth.nuthan@oracle.com> |
||
---|---|---|
.. | ||
Makefile | ||
README.md | ||
defs-linux.json | ||
defs.json | ||
schema-linux.json | ||
schema-solaris.json | ||
schema.json | ||
validate.go |
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:
- schema.json - the primary entrypoint for the whole schema document
- schema-linux.json - this schema is for the Linux-specific sub-structure
- schema-solaris.json - this schema is for the Solaris-specific sub-structure
- defs.json - definitions for general types
- defs-linux.json - definitions for Linux-specific types
- validate.go - validation utility source code
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 ./validate.go
rm -rf $GOPATH
Or you can just use make command to create the utility:
make validate
Then use it like:
./validate schema.json <yourpath>/config.json