swagger-api/swagger-codegen-generators

Java-XML-Binding is only for javax and jakarta is ignored

DanielWalz7 opened this issue · 1 comments

Taking a look at https://github.com/swagger-api/swagger-codegen-generators/blob/master/src/main/resources/handlebars/Java/model.mustache Lines 24 to 26, shows up that on setted Config-property "withXml" the imports for xml-binding types will always be generated to the old javax-package "javax.xml.bind.annotation".
This should be updated depending on the setted "jakarta" Config-Property, so that then the import leads to "jakarta.xml.bind.annotation" instead of "javax.xml.bind.annotation"

I also found this issue and would really appreciate a fix for it!