Class ResolverCache


  • public class ResolverCache
    extends Object
    A class that caches values that have been loaded so we don't have to repeat expensive operations like: 1) reading a remote URL with authorization (e.g. using RemoteURL.java) 2) reading the contents of a file into memory 3) extracting a sub object from a json/yaml tree 4) de-serializing json strings into objects
    • Field Detail

      • openapi31

        protected boolean openapi31
    • Method Detail

      • updateLocalRefs

        protected <T> void updateLocalRefs​(String file,
                                           T result)
      • updateLocalRefs

        protected <T> void updateLocalRefs​(String file,
                                           io.swagger.v3.oas.models.media.Schema schema)
      • checkUrlIsPermitted

        protected void checkUrlIsPermitted​(String refSet)
      • hasReferencedKey

        public boolean hasReferencedKey​(String modelKey)
      • addReferencedKey

        public void addReferencedKey​(String modelKey)
      • getRenamedRef

        public String getRenamedRef​(String originalRef)
      • putRenamedRef

        public void putRenamedRef​(String originalRef,
                                  String newRef)
      • getExternalFileCache

        public Map<String,​String> getExternalFileCache()