public final class IdentityDigester extends AbstractDigester
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.
FACTORY, keyword
Constructor and Description |
---|
IdentityDigester(String keyword,
com.github.fge.jsonschema.util.NodeType first,
com.github.fge.jsonschema.util.NodeType... other)
Constructor
|
Modifier and Type | Method and Description |
---|---|
com.fasterxml.jackson.databind.JsonNode |
digest(com.fasterxml.jackson.databind.JsonNode schema)
Digest a schema into a simplified form
|
supportedTypes, toString
public IdentityDigester(String keyword, com.github.fge.jsonschema.util.NodeType first, com.github.fge.jsonschema.util.NodeType... other)
keyword
- the name for this keywordfirst
- the first supported typeother
- other supported types, if anypublic com.fasterxml.jackson.databind.JsonNode digest(com.fasterxml.jackson.databind.JsonNode schema)
Digester
schema
- the schema to digestCopyright © 2014. All Rights Reserved.