Package com.github.fge.jsonschema.keyword

Schema validation core elements: keyword validators

See: Description

Package com.github.fge.jsonschema.keyword Description

Schema validation core elements: keyword validators

All keyword validators are built via reflection, since they are dependent on the schema being passed as an argument. Therefore, if you create a keyword validator of yours, you must provide a constructor with a single argument of type JsonNode.

Not only this, but if you do, be sure to pair it with a SyntaxChecker. The principle is that the syntax checker checks that the keyword has a correct shape, which means the keyword validator does not have to check for this. This considerably simplifies the constructor (you only have to do minimal type checking, if any).

To create a new validator, you may either extend KeywordValidator or one of these two specific subclasses:

Copyright © 2013. All Rights Reserved.