protected Map<String, OpenApiConfigurationLoader> getLocationLoaders() { Map<String, OpenApiConfigurationLoader> map = new HashMap<>(); map.put("classpath", new ClasspathOpenApiConfigurationLoader()); map.put("file", new FileOpenApiConfigurationLoader()); map.put("url", new URLOpenApiConfigurationLoader()); map.put("service", new ServiceOpenApiConfigurationLoader()); return map; }
@Override public OpenAPIConfiguration load(String path) throws IOException { String sanitized = (path.startsWith("/") ? path : "/" + path); String configString = readInputStreamToString(this.getClass().getResource(sanitized).openStream()); return deserializeConfig(path, configString); }
if (classpathOpenApiConfigurationLoader.exists(location)) { return true;
if (classpathOpenApiConfigurationLoader.exists(location)) { return true;
private static Map<String, OpenApiConfigurationLoader> getLocationLoaders() { final Map<String, OpenApiConfigurationLoader> map = new HashMap<>(); map.put("classpath", new ClasspathOpenApiConfigurationLoader()); map.put("file", new FileOpenApiConfigurationLoader()); return map; }
@Override public OpenAPIConfiguration load(String path) throws IOException { String sanitized = (path.startsWith("/") ? path : "/" + path); String configString = readInputStreamToString(this.getClass().getResource(sanitized).openStream()); return deserializeConfig(path, configString); }
private static Map<String, OpenApiConfigurationLoader> getLocationLoaders() { final Map<String, OpenApiConfigurationLoader> map = new HashMap<>(); map.put("classpath", new ClasspathOpenApiConfigurationLoader()); map.put("file", new FileOpenApiConfigurationLoader()); return map; }
protected Map<String, OpenApiConfigurationLoader> getLocationLoaders() { Map<String, OpenApiConfigurationLoader> map = new HashMap<>(); map.put("classpath", new ClasspathOpenApiConfigurationLoader()); map.put("file", new FileOpenApiConfigurationLoader()); map.put("url", new URLOpenApiConfigurationLoader()); map.put("service", new ServiceOpenApiConfigurationLoader()); return map; }