com.github.fge.jsonschema.keyword.digest.helpers
Class SimpleDigester
java.lang.Object
com.github.fge.jsonschema.keyword.digest.AbstractDigester
com.github.fge.jsonschema.keyword.digest.helpers.SimpleDigester
- All Implemented Interfaces:
- Digester
public final class SimpleDigester
- extends AbstractDigester
A digester only returning the node associated with the keyword
As with all digesters, however, you are required to specify what types
this keyword supports.
SimpleDigester
public SimpleDigester(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