swagger-api / swagger-codegen-generators

Apache License 2.0
284 stars 425 forks source link

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

Open DanielWalz7 opened 12 months ago

DanielWalz7 commented 12 months ago

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"

alha96 commented 8 months ago

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