swagger-api / swagger-codegen-generators

Apache License 2.0
280 stars 418 forks source link

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

Open DanielWalz7 opened 7 months ago

DanielWalz7 commented 7 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 3 months ago

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