swagger-codegen-generators icon indicating copy to clipboard operation
swagger-codegen-generators copied to clipboard

feat: update Java Micronaut generator to support Micronaut 3

Open Paullo612 opened this issue 3 years ago • 1 comments

  • fix useBeanValidation option application
  • add support for choosing Reactive Streams implementation for generated code through library option
  • remove @Controller annotation from generated interfaces, as it is not @Inherited anyway
  • use jakarta inject implementation instead of javax, as Micronaut now uses it by default
  • generate stub controllers when skipSupportFiles is disabled to be able to run tests and start generated application
  • fix bean validation annotations
  • add cookies parameters support
  • use @Body instead of @QueryValue for form parameters generation
  • update pom.xml to use Micronaut 3

closes #946

Paullo612 avatar Aug 24 '21 17:08 Paullo612

This should not brake anything, as I've left RxJava 2 as default Reactive Streams implementation. The only thing I'm not sure about is removal of @Controller from generated interfaces. Haven't checked if it was inherited to implementation classes with Micronaut 2. But Micronaut generator is marked as experimental anyway.

@HugoMario, can you please take a look at this.

Paullo612 avatar Aug 24 '21 18:08 Paullo612

hey @Paullo612 sorry for this long delay, I'm going to check this.

HugoMario avatar May 31 '23 12:05 HugoMario