Skip to content

Maven plugin generating wrong openapi version on plugin version 2.2.30 and 2.2.32 #4907

@thiagohora

Description

@thiagohora

I have the following configuration, where my openapi_template.yml file is a template that specifies openapi: 3.1.0. This works fine on version 2.2.28 but when upgrading to versions 2.2.32 or 2.2.30 the generated file uses openapi: 3.0.1

            <plugin>
                <groupId>io.swagger.core.v3</groupId>
                <artifactId>swagger-maven-plugin-jakarta</artifactId>
                <version>${swagger.version}</version>
                <configuration>
                    <outputFileName>openapi</outputFileName>
                    <outputPath>${project.build.directory}</outputPath>
                    <outputFormat>YAML</outputFormat>
                    <openapiFilePath>${project.basedir}/src/main/resources/openapi_template.yml</openapiFilePath>
                    <ignoredRoutes>/application.wadl</ignoredRoutes>
                </configuration>
                <executions>
                    <execution>
                        <phase>compile</phase>
                        <goals>
                            <goal>resolve</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

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