public final class FormatKeywordValidator extends KeywordValidator
format keyword
The format keyword is a particular beast, since it is the only
validation keyword able to do semantic analysis of an instance.
This library supports all format attributes defined by draft v3 and draft
v4, apart from color and style (for which support is
deliberately ommitted). A collection of additional format attributes can be
found in a sister project: json-schema-formats.
com.github.fge.jsonschema.formatkeyword| Constructor and Description |
|---|
FormatKeywordValidator(JsonNode schema) |
| Modifier and Type | Method and Description |
|---|---|
String |
toString() |
protected void |
validate(ValidationContext context,
ValidationReport report,
JsonNode instance)
Method which all keyword validators must implement
|
alwaysTrue, newMsg, validateInstancepublic FormatKeywordValidator(JsonNode schema)
protected void validate(ValidationContext context, ValidationReport report, JsonNode instance)
KeywordValidatorvalidate in class KeywordValidatorcontext - the contextreport - the validation reportinstance - the instance to validatepublic String toString()
toString in class KeywordValidatorCopyright © 2013. All Rights Reserved.