Open randeepbydesign opened 2 years ago
@randeepbydesign try to use
<importMappings>
<importMapping>integer=Long</importMapping>
</importMappings>
This works for me on plugin level. Haven't checked on execution level, but who knows :)
Yes- if you look at my description I confirm that it works at plugin level but not at execution level.
Ah I see what you were doing. Yes, a specific importMapping
does not work at the execution level either
Bug Report Checklist
Description
We use the maven plugin to generate our artefacts. I was setting up type mappings in my executions so that int32 types were mapped to long instead of Integer:
However it had no effect and my generated POJO still used Integer here. However, defining typeMappings in the
plugin
section did work:Is this a feature-not-a-bug kind of thing or are we supposed to be able to configure the individual executions this way? The
openapi-generator-maven-plugin
markdown document is not very clear on the distinction so I am unsure.openapi-generator version
Using 5.1.0 of openapi-generator-maven-plugin
OpenAPI declaration file content or url
Generation Details
Steps to reproduce
Related issues/PRs
Suggest a fix