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 |
---|---|
com.fasterxml.jackson.databind.JsonNode |
digest(com.fasterxml.jackson.databind.JsonNode schema)
Digest a schema into a simplified form
|
EnumSet<com.github.fge.jsonschema.util.NodeType> |
supportedTypes()
Return the instance types handled by this digested form
|
EnumSet<com.github.fge.jsonschema.util.NodeType> supportedTypes()
NodeType
scom.fasterxml.jackson.databind.JsonNode digest(com.fasterxml.jackson.databind.JsonNode schema)
schema
- the schema to digestCopyright © 2014. All Rights Reserved.