Skip to content

[BUG] Spring generator uses old Swagger dependency #4245

@dkirrane

Description

@dkirrane
Description

I'm using openapi-generator-maven-plugin 4.1.3 and the spring generator uses an old swagger dependency.

expected:

		<dependency>
			<groupId>io.swagger.core.v3</groupId>
			<artifactId>swagger-annotations</artifactId>
			<version>2.0.10</version>
		</dependency>

actual:

		<dependency>
			<groupId>io.swagger</groupId>
			<artifactId>swagger-annotations</artifactId>
			<version>1.5.23</version>
		</dependency>

And the generated code uses import io.swagger.annotations.*
instead of import io.swagger.v3.oas.annotations.*

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions