This is an automated email from the ASF dual-hosted git repository.

thiagohp pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tapestry-5.git


The following commit(s) were added to refs/heads/master by this push:
     new 11386f432 TAP5-2831: update Jackson to 2.21.3
11386f432 is described below

commit 11386f43225101641d79cd74f35d2afa55379adf
Author: Thiago H. de Paula Figueiredo <[email protected]>
AuthorDate: Sat May 30 19:29:22 2026 -0300

    TAP5-2831: update Jackson to 2.21.3
---
 gradle/libs.versions.toml                                  |  2 +-
 tapestry-rest-jackson/build.gradle                         |  1 +
 .../apache/tapestry5/rest/jackson/test/pages/Index.java    | 14 +++++++-------
 3 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml
index 6fc521197..6a7399cdb 100644
--- a/gradle/libs.versions.toml
+++ b/gradle/libs.versions.toml
@@ -51,7 +51,7 @@ xml-apis = "1.4.01"
 groovy = "4.0.29"
 ant-jsch = "1.10.15"
 guava = "33.5.0-jre"
-jackson = "2.20.0"
+jackson = "2.21.3"
 clojure = "1.12.2"
 jaxb-runtime = "2.3.2"
 kaptcha = "0.0.8"
diff --git a/tapestry-rest-jackson/build.gradle 
b/tapestry-rest-jackson/build.gradle
index e05193b39..82f0ba3aa 100644
--- a/tapestry-rest-jackson/build.gradle
+++ b/tapestry-rest-jackson/build.gradle
@@ -9,6 +9,7 @@ dependencies {
 
     implementation libs.jackson.databind
     implementation moduleLibs.jsonschemaGenerator
+    testImplementation project(':tapestry-openapi-viewer')
 
     provided libs.jakarta.servlet.api
 }
diff --git 
a/tapestry-rest-jackson/src/test/java/org/apache/tapestry5/rest/jackson/test/pages/Index.java
 
b/tapestry-rest-jackson/src/test/java/org/apache/tapestry5/rest/jackson/test/pages/Index.java
index 47e1f2daf..e36016b90 100644
--- 
a/tapestry-rest-jackson/src/test/java/org/apache/tapestry5/rest/jackson/test/pages/Index.java
+++ 
b/tapestry-rest-jackson/src/test/java/org/apache/tapestry5/rest/jackson/test/pages/Index.java
@@ -35,19 +35,19 @@ public class Index
     
     @Inject private PageRenderLinkSource pageRenderLinkSource;
     
-    @RestInfo(returnType = User.class, produces = "application/json")
+    @RestInfo(returnType = int.class, produces = "text/plain")
     @OnEvent(EventConstants.HTTP_GET)
-    public Object getUserByEmail(String email)
+    public Object getUserCount(@StaticActivationContextValue("count") String 
ignored)
     {
-        final Optional<User> user = USERS.stream().filter(u -> 
email.equals(u.getEmail())).findFirst();
-        return user.isPresent() ? user.get() : HttpStatus.notFound();
+        return new TextStreamResponse("UTF-8", String.valueOf(USERS.size()));
     }
     
-    @RestInfo(returnType = int.class, produces = "text/plain")
+    @RestInfo(returnType = User.class, produces = "application/json")
     @OnEvent(EventConstants.HTTP_GET)
-    public Object getUserCount(@StaticActivationContextValue("count") String 
ignored)
+    public Object getUserByEmail(String email)
     {
-        return new TextStreamResponse("UTF-8", String.valueOf(USERS.size()));
+        final Optional<User> user = USERS.stream().filter(u -> 
email.equals(u.getEmail())).findFirst();
+        return user.isPresent() ? user.get() : HttpStatus.notFound();
     }
     
     @RestInfo(consumes = "application/json")

Reply via email to