Interface SchemaLoader
- All Known Implementing Classes:
FileLoader,StreamLoader,UrlLoader
public interface SchemaLoader
Interface for loading a JSON schema from various sources.
- Author:
- Elif Kurtay
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.fasterxml.jackson.databind.ObjectMapper -
Method Summary
-
Field Details
-
JSON_MAPPER
static final com.fasterxml.jackson.databind.ObjectMapper JSON_MAPPER
-
-
Method Details
-
load
Schema load()Loads a JSON schema.- Returns:
- a
Schemaobject representing the loaded JSON schema - Throws:
RuntimeException- if no valid source is found or if there is an error loading the schema
-