Skip to content

Commit 27a705e

Browse files
[fix][java]Add missing generated annotation to Authentication.mustache (#21125)
* Add generated annotation to Authentication.mustache * Update Authentication.mustache jersey2 * Update Authentication.mustache jersey3 * Update Authentication.mustache okhttp * Update Authentication.mustache restclient * Update Authentication.mustache resttemplate * Update Authentication.mustache vertx * Update Authentication.mustache webclient * doc: regenerate samples
1 parent f9dedd7 commit 27a705e

File tree

62 files changed

+108
-23
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+108
-23
lines changed

modules/openapi-generator/src/main/resources/Java/auth/Authentication.mustache

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {{invokerPackage}}.Pair;
77
import java.util.Map;
88
import java.util.List;
99

10+
{{>generatedAnnotation}}
1011
public interface Authentication {
1112
/**
1213
* Apply authentication settings to header and query params.

modules/openapi-generator/src/main/resources/Java/libraries/jersey2/auth/Authentication.mustache

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import java.net.URI;
99
import java.util.Map;
1010
import java.util.List;
1111

12+
{{>generatedAnnotation}}
1213
public interface Authentication {
1314
/**
1415
* Apply authentication settings to header and query params.

modules/openapi-generator/src/main/resources/Java/libraries/jersey3/auth/Authentication.mustache

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import java.net.URI;
99
import java.util.Map;
1010
import java.util.List;
1111

12+
{{>generatedAnnotation}}
1213
public interface Authentication {
1314
/**
1415
* Apply authentication settings to header and query params.

modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/auth/Authentication.mustache

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import java.net.URI;
99
import java.util.Map;
1010
import java.util.List;
1111

12+
{{>generatedAnnotation}}
1213
public interface Authentication {
1314
/**
1415
* Apply authentication settings to header and query params.

modules/openapi-generator/src/main/resources/Java/libraries/restclient/auth/Authentication.mustache

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@ package {{invokerPackage}}.auth;
55
import org.springframework.http.HttpHeaders;
66
import org.springframework.util.MultiValueMap;
77

8+
{{>generatedAnnotation}}
89
public interface Authentication {
910
/**
1011
* Apply authentication settings to header and / or query parameters.
12+
*
1113
* @param queryParams The query parameters for the request
1214
* @param headerParams The header parameters for the request
1315
* @param cookieParams The cookie parameters for the request
1416
*/
15-
public void applyToParams(MultiValueMap<String, String> queryParams, HttpHeaders headerParams, MultiValueMap<String, String> cookieParams);
17+
void applyToParams(MultiValueMap<String, String> queryParams, HttpHeaders headerParams, MultiValueMap<String, String> cookieParams);
1618
}

modules/openapi-generator/src/main/resources/Java/libraries/resttemplate/auth/Authentication.mustache

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@ package {{invokerPackage}}.auth;
55
import org.springframework.http.HttpHeaders;
66
import org.springframework.util.MultiValueMap;
77

8+
{{>generatedAnnotation}}
89
public interface Authentication {
910
/**
1011
* Apply authentication settings to header and / or query parameters.
12+
*
1113
* @param queryParams The query parameters for the request
1214
* @param headerParams The header parameters for the request
1315
* @param cookieParams The cookie parameters for the request
1416
*/
15-
public void applyToParams(MultiValueMap<String, String> queryParams, HttpHeaders headerParams, MultiValueMap<String, String> cookieParams);
17+
void applyToParams(MultiValueMap<String, String> queryParams, HttpHeaders headerParams, MultiValueMap<String, String> cookieParams);
1618
}

modules/openapi-generator/src/main/resources/Java/libraries/vertx/auth/Authentication.mustache

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import io.vertx.core.MultiMap;
77

88
import java.util.List;
99

10+
{{>generatedAnnotation}}
1011
public interface Authentication {
1112
/**
1213
* Apply authentication settings to header and query params.

modules/openapi-generator/src/main/resources/Java/libraries/webclient/auth/Authentication.mustache

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@ package {{invokerPackage}}.auth;
55
import org.springframework.http.HttpHeaders;
66
import org.springframework.util.MultiValueMap;
77

8+
{{>generatedAnnotation}}
89
public interface Authentication {
910
/**
1011
* Apply authentication settings to header and / or query parameters.
12+
*
1113
* @param queryParams The query parameters for the request
1214
* @param headerParams The header parameters for the request
1315
* @param cookieParams The cookie parameters for the request
1416
*/
15-
public void applyToParams(MultiValueMap<String, String> queryParams, HttpHeaders headerParams, MultiValueMap<String, String> cookieParams);
17+
void applyToParams(MultiValueMap<String, String> queryParams, HttpHeaders headerParams, MultiValueMap<String, String> cookieParams);
1618
}

samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/auth/Authentication.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import java.util.Map;
1919
import java.util.List;
2020

21+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.13.0-SNAPSHOT")
2122
public interface Authentication {
2223
/**
2324
* Apply authentication settings to header and query params.

samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/auth/Authentication.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import java.util.Map;
2121
import java.util.List;
2222

23+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.13.0-SNAPSHOT")
2324
public interface Authentication {
2425
/**
2526
* Apply authentication settings to header and query params.

0 commit comments

Comments
 (0)