swagger2markup icon indicating copy to clipboard operation
swagger2markup copied to clipboard

Swagger v3 cannot use swagger2markup(1.3.3)

Open PingYufeng opened this issue 3 years ago • 1 comments

Thanks for raising a Swagger2Markup issue. Please provide a brief description of your problem along with the Swagger2Markup version you are using. If possible, please also consider putting together a complete Swagger specification that reproduces the issue. It's better if the Swagger specification is small and isolate the issue.

Swagger2Markup version: 1.3.3

Problem description:

    <!--swagger-->
    <dependency>
        <groupId>io.springfox</groupId>
        <artifactId>springfox-boot-starter</artifactId>
        <version>3.0.0</version>
    </dependency>

    <dependency>
        <groupId>io.github.swagger2markup</groupId>
        <artifactId>swagger2markup</artifactId>
        <version>1.3.3</version>
    </dependency>

    <dependency>
        <groupId>nl.jworks.markdown_to_asciidoc</groupId>
        <artifactId>markdown_to_asciidoc</artifactId>
        <version>1.0</version>
        <scope>compile</scope>
    </dependency>

image image image

when I used Swagger v3, swagger2markup(1.3.3) throw exception "java.lang.IllegalArgumentException: Failed to read the Swagger source".

And I find the problem that it cannot get the 'swagger' when I debug in the Swagger20Parser class.

"JsonNode swaggerNode = rootNode.get("swagger");"

image image

Looking forward to reply, thanks!

PingYufeng avatar Sep 09 '21 05:09 PingYufeng

+1

kirkilj avatar Mar 03 '22 18:03 kirkilj