-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
[REQ] Use full qualified class name in Swagger annotation #23359
Copy link
Copy link
Open
Labels
Description
There is a name conflict with a component class called "Schema". Here is the Gradle config:
openApiGenerate {
generatorName.set("jaxrs-spec")
modelPackage.set("my.package.model")
configOptions.set(
mapOf(
"useJakartaEe" to "true",
"useSwaggerV3Annotations" to "true"
)
)
}The following code will be generated:
package my.package.model;
import io.swagger.v3.oas.annotations.media.Schema;
@Schema(description="Schema")
@jakarta.annotation.Generated(value = "...")
public class Schema implements Serializable {
}Using full qualified class name like JakartaEe would solve the naming conflict issue.
Thank you!
Reactions are currently unavailable