Class Resolver


  • public class Resolver
    extends java.lang.Object
    loads the base document and resolves all internal and external $ref's. In case of an external $ref it automatically downloads the referenced document if autoLoadSchemas is enabled.
    todo make automatic download optional todo prefill documents??? todo try to remove version todo just use DocumentStore internally ????
    • Method Detail

      • resolve

        public ResolverResult resolve​(java.lang.String resourcePath)
      • resolve

        public ResolverResult resolve​(java.net.URI documentUri,
                                      java.lang.Object document)
        resolves a given document. It will walk any referenced document. The result contains a ReferenceRegistry that provides the instance of each ref.
        Parameters:
        documentUri - document uri
        document - document content
        Returns:
        resolver result todo try/catch