Interface | Description |
---|---|
SyntaxChecker |
Interface implemented by all syntax checkers
|
Class | Description |
---|---|
AbstractSyntaxChecker |
Basic syntax checker
|
DivisorSyntaxChecker |
Syntax checker for the
divisibleBy keyword (draft v3) and multipleOf keyword (draft v4) |
PositiveIntegerSyntaxChecker |
Syntax validator for keywords having a positive integer value as an argument
|
SchemaOrSchemaArraySyntaxChecker |
Syntax validator common for
items (draft v3 and v4) and extends (draft v3) |
SyntaxValidator |
Schema syntax validator
|
TypeOnlySyntaxChecker |
The simplest syntax checker
|
The main class in this package is SyntaxValidator
.
Syntax validation has a critically important role in the validation process. An invalid schema will always fail to validate a JSON instance.
For this implementation in particular, it also helps to ensure that the
KeywordValidator
associated with
the schema keyword does not need to preoccupy about its arguments being
well-formed: it is the contract of syntax validation that a keyword validator
needs not preoccupy about this when it is instantiated.
Unlike keyword validators, syntax validators are not built by reflection. It is therefore your responsibility to instantiate it and only then register it.
com.github.fge.jsonschema.examples
Copyright © 2013. All Rights Reserved.