com.github.fge.jsonschema.keyword.digest.helpers
Class NullDigester
java.lang.Object
com.github.fge.jsonschema.keyword.digest.AbstractDigester
com.github.fge.jsonschema.keyword.digest.helpers.NullDigester
- All Implemented Interfaces:
- Digester
public final class NullDigester
- extends AbstractDigester
A digester returning a NullNode
for any input
This is actually useful for keywords like anyOf
, allOf
and
oneOf
, which only roles are to validate subschemas: they do not need
a digested form at all, they just have to peek at the schema.
A net result of all keywords using this digester is that only one instance
will ever be built.
NullDigester
public NullDigester(String keyword,
NodeType first,
NodeType... other)
digest
public JsonNode digest(JsonNode schema)
- Description copied from interface:
Digester
- Digest a schema into a simplified form
- Parameters:
schema
- the schema to digest
- Returns:
- the digested form