public class OpenAPIHolderImpl extends Object implements OpenAPIHolder
| Constructor and Description |
|---|
OpenAPIHolderImpl(Vertx vertx,
HttpClient client,
FileSystem fs,
OpenAPILoaderOptions options) |
| Modifier and Type | Method and Description |
|---|---|
Map<URI,JsonObject> |
getAbsolutePaths() |
JsonObject |
getCached(JsonPointer pointer)
Get cached object using
pointer |
protected URI |
getInitialScope() |
JsonObject |
getOpenAPI() |
protected static URI |
getResourceAbsoluteURI(URI relativeURI) |
protected static URI |
getResourceAbsoluteURIFromClasspath(URI u) |
Future<JsonObject> |
loadOpenAPI(String u) |
Map.Entry<JsonPointer,JsonObject> |
normalizeSchema(JsonObject schema,
JsonPointer scope,
Map<JsonPointer,JsonObject> additionalSchemasToRegister) |
JsonObject |
solveIfNeeded(JsonObject obj)
if
obj contains $ref, it tries to solve it and return the resolved object, otherwise it returns obj |
public OpenAPIHolderImpl(Vertx vertx, HttpClient client, FileSystem fs, OpenAPILoaderOptions options)
public Future<JsonObject> loadOpenAPI(String u)
public JsonObject getCached(JsonPointer pointer)
OpenAPIHolderpointergetCached in interface OpenAPIHolderpublic JsonObject solveIfNeeded(JsonObject obj)
OpenAPIHolderobj contains $ref, it tries to solve it and return the resolved object, otherwise it returns objsolveIfNeeded in interface OpenAPIHolderpublic JsonObject getOpenAPI()
getOpenAPI in interface OpenAPIHolderpublic Map.Entry<JsonPointer,JsonObject> normalizeSchema(JsonObject schema, JsonPointer scope, Map<JsonPointer,JsonObject> additionalSchemasToRegister)
protected URI getInitialScope()
public Map<URI,JsonObject> getAbsolutePaths()
Copyright © 2021. All rights reserved.