|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.github.fge.jsonschema.main.JsonValidator
@Immutable public final class JsonValidator
A generic schema/instance validator
One such instance exists per JsonSchemaFactory
. In fact, you have
to go through a factory to obtain an instance.
This class is also responsible for building JsonSchema
instances.
JsonSchemaFactory.getValidator()
Method Summary | |
---|---|
ProcessingReport |
validate(JsonNode schema,
JsonNode instance)
Validate a schema/instance pair |
ProcessingReport |
validateUnchecked(JsonNode schema,
JsonNode instance)
Validate a schema/instance pair (unchecked mode) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public ProcessingReport validate(JsonNode schema, JsonNode instance) throws ProcessingException
schema
- the schemainstance
- the instance
ProcessingException
- an exception occurred during validation
ProcessingError
- the schema or instance is nullpublic ProcessingReport validateUnchecked(JsonNode schema, JsonNode instance)
The same warnings as described in JsonSchema.validateUnchecked(JsonNode)
apply
schema
- the schemainstance
- the instance
ProcessingError
- the schema or instance is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |