<!-- Please follow the issue template below for bug reports and feature requests. Also please indicate in the issue title which language/library is concerned. Eg: [JAVA] Bug generating foo with bar --> ##### Description I have a swagger that has "Resource" on of it's swagger models. When generating code using Swagger Codegen v3.0.46 and above, the generated ApiApi class includes the following incorrect import statement: import org.springframework.core.io.Resource; However, the application requires the import to point to a custom class which is part of my swagger: import com.org.web.dto.Resource; This issue occurs specifically for the Resource class, which conflicts with org.springframework.core.io.Resource due to naming overlap. ##### Swagger-codegen version v3.0.46 ##### Swagger declaration file content or url <!-- if it is a bug, a json or yaml that produces it. If you post the code inline, please wrap it with ```yaml (here your code) ``` (for YAML code) or ```json (here your code) ``` (for JSON code), so it becomes more readable. If it is longer than about ten lines, please create a Gist (https://gist.github.com) or upload it somewhere else and link it here. --> ##### Command line used for generation JDK21 spring boot 3.4.1 <groupId>io.swagger.codegen.v3</groupId> <artifactId>swagger-codegen-maven-plugin</artifactId> <version>3.0.46</version> ##### Steps to reproduce generate the swagger model classes and it won't compile due to importing the wrong Resource class. <!-- unambiguous set of steps to reproduce the bug.--> ##### Related issues/PRs ##### Suggest a fix/enhancement