public final class FormatProcessor extends Object implements com.github.fge.jsonschema.processing.Processor<ValidatorList,ValidatorList>
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:
format
keyword in the current schema;Note that it will warn if the format attribute is not recognized.
Constructor and Description |
---|
FormatProcessor(com.github.fge.jsonschema.library.Dictionary<FormatAttribute> dict) |
FormatProcessor(Library library) |
Modifier and Type | Method and Description |
---|---|
ValidatorList |
process(com.github.fge.jsonschema.report.ProcessingReport report,
ValidatorList input) |
String |
toString() |
public FormatProcessor(Library library)
public FormatProcessor(com.github.fge.jsonschema.library.Dictionary<FormatAttribute> dict)
public ValidatorList process(com.github.fge.jsonschema.report.ProcessingReport report, ValidatorList input) throws com.github.fge.jsonschema.exceptions.ProcessingException
process
in interface com.github.fge.jsonschema.processing.Processor<ValidatorList,ValidatorList>
com.github.fge.jsonschema.exceptions.ProcessingException
Copyright © 2014. All Rights Reserved.