Package com.github.fge.jsonschema.main

Main schema validation API

See: Description

Package com.github.fge.jsonschema.main Description

Main schema validation API

This package contains all classes you need to validate your data.

Start by building a JsonSchemaFactory, then use it to build JsonSchema instances (one per schema).

JsonSchema is thread-safe and immutable (and concurrent-friendly), you can therefore use a single instance to validate any amount of data. Typically, if you use a single schema, you can make that one instante private static final.

One important thing to remember is that JsonSchema also does syntax validation, and that syntax validation is done on demand. The reasons for this is as follows:

You can also customize your schema factory (via the builder) in several ways. See com.github.fge.jsonschema.examples.

Copyright © 2013. All Rights Reserved.