Package io.swagger.v3.parser
Class ResolverCache
java.lang.Object
io.swagger.v3.parser.ResolverCache
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionResolverCache
(io.swagger.v3.oas.models.OpenAPI openApi, List<io.swagger.v3.parser.core.models.AuthorizationValue> auths, String parentFileLocation) ResolverCache
(io.swagger.v3.oas.models.OpenAPI openApi, List<io.swagger.v3.parser.core.models.AuthorizationValue> auths, String parentFileLocation, Set<String> resolveValidationMessages) ResolverCache
(io.swagger.v3.oas.models.OpenAPI openApi, List<io.swagger.v3.parser.core.models.AuthorizationValue> auths, String parentFileLocation, Set<String> resolveValidationMessages, io.swagger.v3.parser.core.models.ParseOptions parseOptions) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addReferencedKey
(String modelKey) protected void
checkUrlIsPermitted
(String refSet) io.swagger.v3.parser.core.models.ParseOptions
getRenamedRef
(String originalRef) boolean
hasReferencedKey
(String modelKey) <T> T
protected String
void
putRenamedRef
(String originalRef, String newRef) protected <T> void
updateLocalRefs
(String file, io.swagger.v3.oas.models.media.Schema schema) protected <T> void
updateLocalRefs
(String file, T result)
-
Field Details
-
openapi31
protected boolean openapi31
-
-
Constructor Details
-
ResolverCache
-
ResolverCache
-
ResolverCache
-
-
Method Details
-
loadRef
-
updateLocalRefs
-
updateLocalRefs
-
merge
-
checkUrlIsPermitted
-
hasReferencedKey
-
addReferencedKey
-
getRenamedRef
-
putRenamedRef
-
getResolutionCache
-
getExternalFileCache
-
getRenameCache
-
getParseOptions
public io.swagger.v3.parser.core.models.ParseOptions getParseOptions()
-