[Micronaut] Improvements for Server and Client #12297
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR includes multiple improvements:
Application name parameter
Added
applicationName
parameter that will also be used to distinguishbase-path
for different clients allowing multiple clients to be used in one application. Based on #11150.Swagger annotations parameter
Changed the swagger annotations version to swagger2 (
io.swagger.core.v3:swagger-annotations
). The version can be configured using thegenerateSwaggerAnnotations
option that supports valuestrue
(equivalent toswagger2
),false
,swagger1
,swagger2
. By default no annotations are generated for client andswagger2
for server. This supports what is requested in #12223 (with just supplying the valuefalse
).Operations generated only for first tag
Added option to generate operations only for first tag. The issue is described in detail in #12224. The default behavior is to generate operation for each tag, so for definition
the operation
configureProfile
will be repeated twice (once inUsers
and once inManagement
). This can be avoided by setting thegenerateOperationOnlyForFirstTag=true
. By default it is set totrue
for server andfalse
for client.Sample, Docs generation, and tests
Ran:
Tested the generation locally.
@wing328
@mshannongit
Java technical committee:
@bbdouglas @sreeshas @jfiala @lukoyanov @cbornet @jeff9finger @karismann @Zomzog @lwlee2608