try {
URL remoteSwaggerFile = new URL("http://petstore.swagger.io/v2/swagger.json");
Path jsonFile = Paths.get("./build/asciidoc").resolve("swagger.json");
Path outputDirectoy = Paths.get("build/asciidoc");
Swagger swagger = new SwaggerParser().read("http://petstore.swagger.io/v2/swagger.json");
Swagger2MarkupConverter.from(swagger)
.build().intoFolder("build/asciidoc");
} catch (Exception e) {
e.printStackTrace();
}
我遇到了以下错误:target异常:“ java.lang.NosuchMethodError:io.swagger.models.Response.responseSchema” 我想阅读json并保存到build / asciidoc目录中的.adoc。有人知道我做错了吗?