-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java.util.Map is not imported #8121
Comments
I faced the same issue with swagger-codegen-maven-plugin 2.3.1 |
I'm also still seeing this behavior in both 2.3.1 and 2.4.2.
One possible workaround I've found is to define a wrapper object to be the host of the actual map, which isn't idea, but does work.
|
hello @githubgogogo @yuanpli @mccrackend can you please let me know what |
@HugoMario I'm using Java v1.8 in this particular project |
@mccrackend sorry for confuse, i meant what language option for code generation, example: java, spring, python, etc |
@HugoMario |
Same issue, swagger-codegen-cli 3.0.33 using |
Description
When I use swagger-codegen-maven-plugin maven plugin to generate API java code, the Map is not imported. I saw some similar issue raised but no code fix merged in master branch, could you please let me know when could the fix merged in master branch.
Swagger-codegen version
2.4.0-SNAPSHOT
Swagger declaration file content or url
required: false
in: query
type: object
additionalProperties: {
type: string
}
Suggest a fix/enhancement
Please support Map in code generation
The text was updated successfully, but these errors were encountered: