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

    Fields
    Modifier and Type
    Field
    Description
    static final com.fasterxml.jackson.databind.ObjectMapper
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Loads a JSON schema.
  • Field Details

    • JSON_MAPPER

      static final com.fasterxml.jackson.databind.ObjectMapper JSON_MAPPER
  • Method Details

    • load

      Schema load()
      Loads a JSON schema.
      Returns:
      a Schema object representing the loaded JSON schema
      Throws:
      RuntimeException - if no valid source is found or if there is an error loading the schema