phoenixnap / springmvc-raml-plugin

Spring MVC - RAML Spec Synchroniser Plugin. A Maven plugin designed to Generate Server & Client code in Spring from a RAML API descriptor and conversely, a RAML API document from the SpringMVC Server implementation.
Apache License 2.0
136 stars 84 forks source link

Issue 203 #226

Closed yuranos closed 6 years ago

yuranos commented 6 years ago

@stojsavljevic , please review. You will notice a change in SpringMvcEndpointGeneratorMojo about the way typeGenerationConfig is initialised. I was considering adding a callback, like PostConstruct to the mojo, but it's too much trouble it seems(will require something like mycila-guice-jsr250) and it will take me some time because I'm not very much familiar with the way Guice/Sisu is used under the hood. In any case, I don't think it's worth it in this simple case.

Otherwise, I tested it on our project and it works like a charm.

yuranos commented 6 years ago

Hold on, @stojsavljevic. I just noticed my controllers do not have imports for type objects. I hope this si a quick one, but I'm not very enthusiastic about anything related to JCodeModel:)

yuranos commented 6 years ago

@stojsavljevic , please check now.