com.github.fge.jsonschema.processors.format
Class FormatProcessor
java.lang.Object
com.github.fge.jsonschema.processors.format.FormatProcessor
- All Implemented Interfaces:
- Processor<ValidatorList,ValidatorList>
public final class FormatProcessor
- extends Object
- implements Processor<ValidatorList,ValidatorList>
Format attribute handler
This processor is run after ValidatorBuilder if and only if the
user has chosen to perform format validation (it is enabled by
default).
It will append a specific KeywordValidator to the list of already
existing validators if and only if:
- there is a
format keyword in the current schema;
- the specified format attribute is supported;
- the instance type is supported by this format attribute.
Note that it will warn if the format attribute is not recognized.
FormatProcessor
public FormatProcessor(Library library,
ValidationConfiguration cfg)
process
public ValidatorList process(ProcessingReport report,
ValidatorList input)
throws ProcessingException
- Specified by:
process in interface Processor<ValidatorList,ValidatorList>
- Throws:
ProcessingException
toString
public String toString()
- Overrides:
toString in class Object