Interface IReferenceResolver

  • All Known Implementing Classes:
    LocalReferenceResolver, ReferenceResolverChain

    public interface IReferenceResolver
    Used to resolve references ($ref or operationRef) to a JSON object. Users of the apicurio-data-models library can provide zero or more custom implementations of this interface in order to provide a way to resolve reference URI formats that are not supported by default. Internal references are supported by default. When providing custom reference resolvers, those custom resolvers will be used before any default/built-in resolvers.
    Author:
    eric.wittmann@gmail.com
    • Method Detail

      • resolveRef

        Node resolveRef​(String reference,
                        Node from)
        Resolves a reference to a Node.
        Parameters:
        reference -
        from -
        Returns:
        null if the resolver cannot resolve the reference