Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  * Copyright (c) 2013, Francis Galiegue <>
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the Lesser GNU General Public License as
  * published by the Free Software Foundation, either version 3 of the
  * License, or (at your option) any later version.
  * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * Lesser GNU General Public License for more details.
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <>.
package com.github.fge.jsonschema.keyword.digest;
Interface for a digester

A digester, as its name implies, digests a schema (which comes here as a com.fasterxml.jackson.databind.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.

public interface Digester
Return the instance types handled by this digested form


Digest a schema into a simplified form

schema the schema to digest
the digested form
    JsonNode digest(final JsonNode schema);
New to GrepCode? Check out our FAQ X