openapi-processor / openapi-processor-spring

an OpenAPI 3.0 & 3.1 interface & model java code generator for Spring Boot
https://docs.openapiprocessor.io
Apache License 2.0
40 stars 9 forks source link

Support Spring Boot 3 & Jakarta EE 9 #152

Closed bergac closed 1 year ago

bergac commented 1 year ago

Ola!

It would be nice if support for Spring Boot 3 & Jakarta EE 9 is added.

Spring Boot 3 updated to Jakarta EE 9. The eclipse foundation moved most of the javax.* namespace to jakarta.*. To be able to use Spring Boot 3 with models generated by openapi-processor, it needs to use the jakarta.* namespace.

hauner commented 1 year ago

I didn't know that. Thanks for mentioning it. :-)

This seem to effect only the bean validation annotations so I guess I will change the configuration a little bit to select the javax or jakarta namespace.

openapi-processor-spring: v2.2

options:
 # old javax validations
  bean-validation: true
 # new: javax validations
  bean-validation: v2
 # new: jakarta validations
  bean-validation: v3
hauner commented 1 year ago

or even better and simpler would be

openapi-processor-spring: v2.2

options:
  bean-validation: javax
  # or
  bean-validation: jakarta
bergac commented 1 year ago

or even better and simpler would be

openapi-processor-spring: v2.2

options:
  bean-validation: javax
  # or
  bean-validation: jakarta

Nice! :)

hauner commented 1 year ago

supported added in 2023.1