jsonschema-validator

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2020 License: GPL-2.0 Imports: 4 Imported by: 0

README

JSONSchema validator for JSON and YAML files

Features

  • Validate JSON and YAML files with your JSON Schema file

Usage

Note: Right now both the schema and the file to be validated have to be located on the file system.

Binary
bin/jsonschema-validator ./schema/project-definition.schema.json ./examples/valid/enum1.yml

bin/jsonschema-validator ./schema/project-definition.schema.json ./examples/valid/enum1.json
GoLang API
Docker container

You can find the official Docker image on Docker Hub. The binary on the Docker container is located at /bin/validator.

docker run --rm -u=$(id -u):$(id -g) -v=$(pwd):/app saitho/jsonschema-validator ./schema/project-definition.schema.json ./examples/valid/enum1.yml

Development

Run Tests
go test
Build binary
go build -o bin/jsonschema-validator

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL