avaje-http
avaje-http copied to clipboard
Now we can find controllers in other jar files
I have tried something, it was a lot of work and I am not sure if it is a good thing but it works. I now can locate controllers in other jar files and add them to the openapi.json file
So it could be a solution for #51
But as I said it kind of is a large change on top of your code. It seems to work and I have compared the openapi.json that is created on a few types of parameters / returns types. With and without lists etc.
One thing that is also important to mention you need to add the following to your pom file to keep the parameter names so they can be used for generating the openapi.json file.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<compilerArgument>-parameters</compilerArgument>
<source>${maven.compiler.source}</source>
<target>${maven.compiler.target}</target>
<parameters>true</parameters>
</configuration>
</plugin>
Please let me know if it could be something useful or not... Tijs