public final class FormatKeywordValidator extends KeywordValidator
format keyword
The format keyword is a particular beast, since in draft v3, it is
the only validation keyword able to do semantic analysis of an
instance.
This library only supports a subset of all format attributes defined by
draft v3. Other format attributes, apart from color and style
(for which support is deliberately ommitted), are in another library
dependent on this one (and also reachable by Maven users): json-schema-formats.
org.eel.kitchen.jsonschema.formatkeyword, nodeFactory| 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 © 2012. All Rights Reserved.