oanc / org.anc.json.validator

A JSON validator that can validate instances using the Javascript or the alternate syntax.
Apache License 2.0
0 stars 0 forks source link

JSON Schema Validator JSON

Build Status

Master Status Develop Status

Maven

<dependency>
    <groupId>org.anc.json</groupId>
    <artifactId>validator</artifactId>
    <version>${see below}</version>
</dependency>

Latest version : Maven Central

The LAPPS Grid JSON Schema Validator can be used as a libary in other applications or can be used as a stand-alone program from the command line. Under the hood the JSON validation is done by the json-schema-validator project on GitHub.

As a library

The Java library contains two classes of interest:

  1. Validator
    validates a JSON instance document against a JSON schema
  2. SchemaValidator
    validate a JSON Schema document against the Draft-04 JSON Schema specification.

From the command line

java -jar jsonv-x.y.z.jar [-j|-a] -s <schema> [-i <instance.]

OPTIONS

  -a, --alt              schema is specified using alternate syntax.
  -h, --help             this usage message.
  -i, --instance=PARAM   json instance to validate.
  -j, --json             schema is specified in json.
  -s, --schema=PARAM     schema to use for validation.
  -v, --version          displays the current version number.