You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Added ability to configure the AuthorizationFilter pattern
* Added configuration for the Client annotation
* Generated samples
* Remove extra newline from template
* Updated samples
* Declarative client annotation path attribute only supported when id attribute is set
* Cleaned up style of generated file
---------
Co-authored-by: Shane Perry <shane.perry@acimacredit.com>
Copy file name to clipboardExpand all lines: docs/generators/java-micronaut-client.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,10 +29,13 @@ These options may be applied as additional-properties (cli) or configOptions (pl
29
29
|artifactId|artifactId in generated pom.xml. This also becomes part of the generated library's filename||openapi-micronaut-client|
30
30
|artifactUrl|artifact URL in generated pom.xml||https://github.com/openapitools/openapi-generator|
31
31
|artifactVersion|artifact version in generated pom.xml. This also becomes part of the generated library's filename||1.0.0|
32
+
|authorizationFilterPattern|Configure the authorization filter pattern for the client. Generally defined when generating clients from multiple specification files||null|
33
+
|basePathSeparator|Configure the separator to use between the application name and base path when referencing the property||-|
32
34
|bigDecimalAsString|Treat BigDecimal values as Strings to avoid precision loss.||false|
|build|Specify for which build tool to generate files|<dl><dt>**gradle**</dt><dd>Gradle configuration is generated for the project</dd><dt>**all**</dt><dd>Both Gradle and Maven configurations are generated</dd><dt>**maven**</dt><dd>Maven configuration is generated for the project</dd></dl>|all|
35
37
|camelCaseDollarSign|Fix camelCase when starting with $ sign. when true : $Value when false : $value||false|
38
+
|clientId|Configure the service ID for the Client||null|
36
39
|configureAuth|Configure all the authorization methods as specified in the file||false|
37
40
|containerDefaultToNull|Set containers (array, set, map) default to null||false|
38
41
|dateFormat|Specify the format pattern of date as a string||null|
Copy file name to clipboardExpand all lines: modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaMicronautClientCodegen.java
@@ -33,6 +41,9 @@ public JavaMicronautClientCodegen() {
33
41
34
42
cliOptions.add(CliOption.newBoolean(OPT_CONFIGURE_AUTH, "Configure all the authorization methods as specified in the file", configureAuthorization));
35
43
cliOptions.add(CliOption.newString(ADDITIONAL_CLIENT_TYPE_ANNOTATIONS, "Additional annotations for client type(class level annotations). List separated by semicolon(;) or new line (Linux or Windows)"));
44
+
cliOptions.add(CliOption.newString(AUTHORIZATION_FILTER_PATTERN, "Configure the authorization filter pattern for the client. Generally defined when generating clients from multiple specification files"));
45
+
cliOptions.add(CliOption.newString(BASE_PATH_SEPARATOR, "Configure the separator to use between the application name and base path when referencing the property").defaultValue(basePathSeparator));
46
+
cliOptions.add(CliOption.newString(CLIENT_ID, "Configure the service ID for the Client"));
Copy file name to clipboardExpand all lines: modules/openapi-generator/src/test/java/org/openapitools/codegen/java/micronaut/MicronautClientCodegenTest.java
+59Lines changed: 59 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -251,4 +251,63 @@ public void testAdditionalClientTypeAnnotations() {
0 commit comments