From 3cc3de98e54bc6b9bb46346a37c0278f221bc0b1 Mon Sep 17 00:00:00 2001 From: Julian Ladisch Date: Mon, 16 May 2022 10:53:42 +0200 Subject: [PATCH 1/2] jackson-base 2.13.2.1, add getAbsentValue Upgrade jackson-base from 2.12.2 to 2.13.2.1. Add JsonNullableDeserializer#getAbsentValue(DeserializationContext) to overwrite the method inherited from JsonDeserializer. Fixes #30 --- pom.xml | 2 +- .../jackson/nullable/JsonNullableDeserializer.java | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 7761bc3..859aef7 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ com.fasterxml.jackson jackson-base - 2.12.2 + 2.13.2.1 org.openapitools jackson-databind-nullable diff --git a/src/main/java/org/openapitools/jackson/nullable/JsonNullableDeserializer.java b/src/main/java/org/openapitools/jackson/nullable/JsonNullableDeserializer.java index e7a31fa..9ebee24 100644 --- a/src/main/java/org/openapitools/jackson/nullable/JsonNullableDeserializer.java +++ b/src/main/java/org/openapitools/jackson/nullable/JsonNullableDeserializer.java @@ -57,6 +57,11 @@ public JsonNullableDeserializer withResolved(TypeDeserializer typeDeser, JsonDes typeDeser, valueDeser); } + @Override + public Object getAbsentValue(DeserializationContext ctxt) { + return JsonNullable.undefined(); + } + @Override public JsonNullable getNullValue(DeserializationContext ctxt) { return JsonNullable.of(null); From 752d9e0eff2bba768c02d5b3800243a38063f01d Mon Sep 17 00:00:00 2001 From: Julian Ladisch Date: Fri, 27 May 2022 10:23:56 +0200 Subject: [PATCH 2/2] jackson-base 2.13.3 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 859aef7..82e151e 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ com.fasterxml.jackson jackson-base - 2.13.2.1 + 2.13.3 org.openapitools jackson-databind-nullable