Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swagger v3 cannot use swagger2markup(1.3.3) #420

Open
PingYufeng opened this issue Sep 9, 2021 · 1 comment
Open

Swagger v3 cannot use swagger2markup(1.3.3) #420

PingYufeng opened this issue Sep 9, 2021 · 1 comment

Comments

@PingYufeng
Copy link

PingYufeng commented Sep 9, 2021

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!

@kirkilj
Copy link

kirkilj commented Mar 3, 2022

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants