Sign inSign up

theroozbeh/jsonschema-tools

By theroozbeh

•Updated almost 4 years ago

A docker image with basic tools for working with JSON schema

Image
0

4.3K

theroozbeh/jsonschema-tools repository overview

⁠JSON Schema Tools

This docker image contains tools for:

  • converting jsonschema files written in YAML to JSON
  • validating the correctness of jsonschema files (in YAML)
  • validating a JSON object file against a JSON schema definition (in YAML)

⁠Usage

The roozbehf/validate-json.sh⁠ gist is an example of how to make use of this image.

docker run \
    --rm -it \
    --net="none" \
    -v `pwd`:/pg \
    -u `id -u` \
    theroozbeh/jsonschema-tools:latest "$@"
⁠Examples

To validate a JSON schema file in YAML (using validate-json.sh⁠):

./validate-json.sh examples/schema.yml

To validate a JSON object against a schema (using validate-json.sh⁠):

./validate-json.sh examples/schema.yml examples/valid-object.json 

Tag summary

Content type

Image

Digest

sha256:b56be2990…

Size

150 MB

Last updated

almost 4 years ago

docker pull theroozbeh/jsonschema-tools