Interface SchemaRetriever

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@Internal @FunctionalInterface public interface SchemaRetriever
Loads schema documents referenced by URI (for example through $ref).
Since:
2.3.2
Author:
Graeme Rocher
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final SchemaRetriever
    A retriever that cannot load any document.
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable io.micronaut.json.tree.JsonNode
    Loads the schema document identified by the given absolute URI.
  • Field Details

    • NONE

      static final SchemaRetriever NONE
      A retriever that cannot load any document.
  • Method Details

    • retrieve

      @Nullable io.micronaut.json.tree.JsonNode retrieve(String uri) throws IOException
      Loads the schema document identified by the given absolute URI.
      Parameters:
      uri - The absolute URI, without fragment
      Returns:
      The parsed document, or null if no document exists for the URI
      Throws:
      IOException - If the document cannot be read