From 213d96240d0d74108f86289acac45f92cfe661d1 Mon Sep 17 00:00:00 2001 From: Eric Rolli <149762070+eric-rolli@users.noreply.github.com> Date: Thu, 5 Sep 2024 08:23:07 +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/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/ApiClient.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/ApiClient.java index 9148712ff91e..901c1642e160 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/ApiClient.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/ApiClient.java @@ -1269,7 +1269,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 {