From 1f517030220b3ad0bb72b0fc0fd4beb70a0d18ef Mon Sep 17 00:00:00 2001 From: Eric Rolli <149762070+eric-rolli@users.noreply.github.com> Date: Thu, 5 Sep 2024 08:25:11 +0200 Subject: [PATCH] Update ApiClient.java Jersey doesn't allow entities in method DELETE --- .../src/main/java/org/openapitools/client/ApiClient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/ApiClient.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/ApiClient.java index abcae1372273..55e42c2b7b44 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/ApiClient.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/ApiClient.java @@ -1351,7 +1351,7 @@ private Response sendRequest(String method, Invocation.Builder invocationBuilder } else if ("PUT".equals(method)) { response = invocationBuilder.put(entity); } else if ("DELETE".equals(method)) { - response = invocationBuilder.method("DELETE", entity); + response = invocationBuilder.method("DELETE"); } else if ("PATCH".equals(method)) { response = invocationBuilder.method("PATCH", entity); } else {