You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by re...@apache.org on 2019/07/16 03:02:11 UTC
[cxf] 06/08: Upgrading Apache Johnzon dependencies to 1.1.11
This is an automated email from the ASF dual-hosted git repository.
reta pushed a commit to branch CXF-7601_microProfileOpenApi
in repository https://gitbox.apache.org/repos/asf/cxf.git
commit 09ddfdeaef6f32537dba23fa6d7ef36992b3217b
Author: reta <dr...@gmail.com>
AuthorDate: Tue Apr 9 22:02:38 2019 -0400
Upgrading Apache Johnzon dependencies to 1.1.11
---
.../samples/jax_rs/description_openapi_microprofile_spring/pom.xml | 1 -
.../src/main/java/demo/jaxrs/openapi/server/Sample.java | 3 ++-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/distribution/src/main/release/samples/jax_rs/description_openapi_microprofile_spring/pom.xml b/distribution/src/main/release/samples/jax_rs/description_openapi_microprofile_spring/pom.xml
index f44cbe6..f4734b2 100644
--- a/distribution/src/main/release/samples/jax_rs/description_openapi_microprofile_spring/pom.xml
+++ b/distribution/src/main/release/samples/jax_rs/description_openapi_microprofile_spring/pom.xml
@@ -81,7 +81,6 @@
<dependency>
<groupId>org.apache.johnzon</groupId>
<artifactId>johnzon-jsonb</artifactId>
- <version>1.1.11</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
diff --git a/distribution/src/main/release/samples/jax_rs/description_openapi_microprofile_spring/src/main/java/demo/jaxrs/openapi/server/Sample.java b/distribution/src/main/release/samples/jax_rs/description_openapi_microprofile_spring/src/main/java/demo/jaxrs/openapi/server/Sample.java
index 64bd691..6ab3687 100644
--- a/distribution/src/main/release/samples/jax_rs/description_openapi_microprofile_spring/src/main/java/demo/jaxrs/openapi/server/Sample.java
+++ b/distribution/src/main/release/samples/jax_rs/description_openapi_microprofile_spring/src/main/java/demo/jaxrs/openapi/server/Sample.java
@@ -141,6 +141,7 @@ public class Sample {
return item;
}
+ @Produces({ MediaType.APPLICATION_JSON })
@Path("/{name}")
@DELETE
@Operation(
@@ -154,7 +155,7 @@ public class Sample {
schema = @Schema(implementation = String.class),
in = ParameterIn.HEADER
)
- @APIResponse(responseCode = "204", content = @Content(schema = @Schema()))
+ @APIResponse(responseCode = "204")
public void delete(@Parameter(required = true) @PathParam("name") String name) {
items.remove(name);
}