swagger2markup在春季靴子应用程序中如何工作?

时间:2018-08-14 21:18:38

标签: swagger

我尝试了解http://swagger2markup.github.io/swagger2markup/1.3.1/中的swagger2markup

URL remoteSwaggerFile = new 
URL("http://petstore.swagger.io/v2/swagger.json");
Path outputDirectory = Paths.get("build/asciidoc");

Swagger2MarkupConverter.from(remoteSwaggerFile) 
.build() 
.toFolder(outputDirectory);

 <dependency>
        <groupId>ca.szc.thirdparty.nl.jworks.markdown_to_asciidoc</groupId>
        <artifactId>markdown_to_asciidoc</artifactId>
        <version>1.0</version>
    </dependency>
    <dependency>
        <groupId>org.asciidoctor</groupId>
        <artifactId>asciidoctorj</artifactId>
        <version>1.5.6</version>
    </dependency>
    <dependency>
        <groupId>org.apache.httpcomponents</groupId>
        <artifactId>httpclient</artifactId>
        <version>4.5.2</version>
    </dependency>
    <dependency>
        <groupId>io.github.swagger2markup</groupId>
        <artifactId>swagger2markup</artifactId>
        <version>1.3.1</version>
    </dependency>

它不起作用,并在下面显示错误:

java.lang.ClassNotFoundException: ch.netzwerg.paleo.ColumnIds$StringColumnId
at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[na:1.8.0_171]
at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_171]
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) ~[na:1.8.0_171]
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_171]
at io.github.swagger2markup.internal.component.ParameterTableComponent.apply(ParameterTableComponent.java:76) ~[swagger2markup-1.3.1.jar:1.3.1]
at io.github.swagger2markup.internal.component.PathOperationComponent.buildParametersSection(PathOperationComponent.java:198) ~[swagger2markup-1.3.1.jar:1.3.1]
at io.github.swagger2markup.internal.component.PathOperationComponent.apply(PathOperationComponent.java:100) ~[swagger2markup-1.3.1.jar:1.3.1]
at io.github.swagger2markup.internal.document.PathsDocument.applyPathOperationComponent(PathsDocument.java:223) ~[swagger2markup-1.3.1.jar:1.3.1]
at io.github.swagger2markup.internal.document.PathsDocument.buildOperation(PathsDocument.java:207) ~[swagger2markup-1.3.1.jar:1.3.1]
at io.github.swagger2markup.internal.document.PathsDocument.lambda$buildsPathsSection$0(PathsDocument.java:119) ~[swagger2markup-1.3.1.jar:1.3.1]

有人知道swaggermarkup的工作原理吗?请帮忙,谢谢!

0 个答案:

没有答案