|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.github.fge.jsonschema.processors.syntax.SyntaxValidator
public final class SyntaxValidator
Standalone syntax validator
This is the syntax validator built, and returned, by JsonSchemaFactory.getSyntaxValidator(). It can be used to validate schemas
independently of the validation chain. Among other features, it detects
$schema and acts accordingly.
Note that the reports used are always ListProcessingReports.
| Constructor Summary | |
|---|---|
SyntaxValidator(ValidationConfiguration cfg)
Constructor |
|
| Method Summary | |
|---|---|
Processor<ValueHolder<SchemaTree>,ValueHolder<SchemaTree>> |
getProcessor()
Return the underlying processor |
boolean |
schemaIsValid(JsonNode schema)
Tell whether a schema is valid |
ProcessingReport |
validateSchema(JsonNode schema)
Validate a schema and return a report |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SyntaxValidator(ValidationConfiguration cfg)
cfg - the validation configuration to use| Method Detail |
|---|
public boolean schemaIsValid(JsonNode schema)
schema - the schema
public ProcessingReport validateSchema(JsonNode schema)
schema - the schema
public Processor<ValueHolder<SchemaTree>,ValueHolder<SchemaTree>> getProcessor()
You can use this processor to chain it with your own.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||