public interface Digester
A digester, as its name implies, digests a schema (which comes here as a
JsonNode
) and returns a simplified form of it, according to its
context.
It is mainly used for keywords, for building a simplified form of a schema in order to ease the job of keyword construction; but most importantly, it also reports the instance types supported by this keyword.
It is also used to build a digested form of schemas for array/object schema selections.
Modifier and Type | Method and Description |
---|---|
JsonNode |
digest(JsonNode schema)
Digest a schema into a simplified form
|
EnumSet<NodeType> |
supportedTypes()
Return the instance types handled by this digested form
|