| Class | Description |
|---|---|
| JsonSchema |
The main validation class
|
| JsonSchemaFactory |
Factory to build JSON Schema validating instances
|
| JsonSchemaFactory.Builder |
Builder class for a
JsonSchemaFactory |
| Keyword |
Representation of a schema keyword: its name, syntax checker and validator
|
| Keyword.Builder |
Builder class for a new keyword
|
| Exception | Description |
|---|---|
| JsonSchemaException |
Generic exception thrown when the validation cannot proceed normally
|
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 org.eel.kitchen.jsonschema.examples.
Copyright © 2013. All Rights Reserved.