Interface | Description |
---|---|
SyntaxChecker |
Interface for a syntax checker
|
Class | Description |
---|---|
AbstractSyntaxChecker |
Base abstract syntax checker
|
Syntax checkers play a critical role in the validation process. If syntax validation checking fails, the validation process stops, and syntax validation depends on these checkers.
A successful syntax validation ensures that digesters and validators will not see malformed inputs, and as such they do not even need to care whether their input is valid -- they know that it is.
Even though you can turn it off, it is not recommended. Take this schema as an example:
{ "$ref": "#/properties", "properties": { "type": { "type": "string" } } }
This schema is syntactically valid; however, if someone tries and
validates against this schema, the JSON Reference leads to a schema which is
not valid; syntax checking will detect this since it takes place
right after JSON Reference processing. If there were no syntax checking, the
matching digester for the type
keyword would throw a NullPointerException
.
Copyright © 2013. All Rights Reserved.