当我使用Jaxrs-Analyzer Version 0.9
时,它会生成swagger 1.2
json 文档。我如何配置jaxrs-analyzer
以确保它生成swagger 2
json 定义?
<plugin>
<groupId>com.sebastian-daschner</groupId>
<artifactId>jaxrs-analyzer-maven-plugin</artifactId>
<version>0.9</version>
<executions>
<execution>
<goals>
<goal>analyze-jaxrs</goal>
</goals>
<configuration>
<!-- Available backends, defaults to plaintext -->
<!-- <backend>plaintext</backend> -->
<backend>swagger</backend>
</configuration>
</execution>
</executions>
</plugin>
编辑
示例招摇 json doc;
{
"apiVersion" : "1",
"swaggerVersion" : "1.2",
"basePath" : "/testwar/rest",
"resourcePath" : "/TankSystems",
"apis" : [ {