[jaxrs-spec][quarkus] fix cookie in param#21400
Conversation
|
Thanks for the PR but your commit (as shown in the Commits tab) is not linked to your Github account, which means this PR won't count as your contribution in https://github.com/OpenAPITools/openapi-generator/graphs/contributors. Let me know if you need help fixing it. |
9c6ab93 to
43c65de
Compare
It seems ok now |
43c65de to
eb66e67
Compare
|
cc |
|
tested with a spec with cookie parameters to confirm the fix diff --git a/src/gen/java/org/openapitools/api/PetsApi.java b/src/gen/java/org/openapitools/api/PetsApi.java
index 4b806e6..205e5f1 100644
--- a/src/gen/java/org/openapitools/api/PetsApi.java
+++ b/src/gen/java/org/openapitools/api/PetsApi.java
@@ -17,7 +17,7 @@ import javax.validation.Valid;
*/
@Path("/pets")
@Api(description = "the pets API")
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", date = "2025-06-12T18:26:59.266514400+08:00[Asia/Hong_Kong]", comments = "Generator version: 7.14.0-SNAPSHOT")
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", date = "2025-06-12T18:28:06.906993300+08:00[Asia/Hong_Kong]", comments = "Generator version: 7.14.0-SNAPSHOT")
public class PetsApi {
@GET
@@ -25,7 +25,7 @@ public class PetsApi {
@ApiResponses(value = {
@ApiResponse(code = 200, message = "OK", response = Void.class)
})
- public Response getCustomer(@HeaderParam("first") String first,@CookieParam("cookieParameter") String cookieParameter) {
+ public Response getCustomer(@HeaderParam("first") String first) {
return Response.ok().entity("magic!").build();
}
}
output compiles without issues |
CookieParams is not presented in src/main/resources/JavaJaxRS/spec/libraries/quarkus/apiInterface.mustache
Closes #21375