com.github.fge.jsonschema.keyword.digest.helpers
Class IdentityDigester
java.lang.Object
com.github.fge.jsonschema.keyword.digest.AbstractDigester
com.github.fge.jsonschema.keyword.digest.helpers.IdentityDigester
- All Implemented Interfaces:
- Digester
public final class IdentityDigester
- extends AbstractDigester
A "no-op" digester
This is the most simple of digesters, which will return its input as the
digested forms. If you choose to use it, you will therefore only have to
provide the list of types supported by your keyword.
IdentityDigester
public IdentityDigester(String keyword,
NodeType first,
NodeType... other)
- Constructor
- Parameters:
keyword
- the name for this keywordfirst
- the first supported typeother
- other supported types, if any
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