Skip to content

Swagger v3 cannot use swagger2markup(1.3.3) #420

Description

@PingYufeng

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions