From e819630204358c1f8188d9a92c0b9f6173f71f39 Mon Sep 17 00:00:00 2001 From: Daniel Kavan Date: Tue, 31 May 2022 12:51:49 +0200 Subject: [PATCH] #1692 serialization reverted to original state -> new issue #2074 --- .../main/scala/za/co/absa/enceladus/rest_api/Application.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rest-api/src/main/scala/za/co/absa/enceladus/rest_api/Application.scala b/rest-api/src/main/scala/za/co/absa/enceladus/rest_api/Application.scala index 3ae98ddcb..e5d5352a4 100644 --- a/rest-api/src/main/scala/za/co/absa/enceladus/rest_api/Application.scala +++ b/rest-api/src/main/scala/za/co/absa/enceladus/rest_api/Application.scala @@ -54,7 +54,8 @@ class Application() { .configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false) .configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false) - .setSerializationInclusion(Include.NON_ABSENT) + // todo consider including the following to unify serialization results - #2074 + // .setSerializationInclusion(Include.NON_ABSENT) // ^ fields of `Option[T]` are not included if None (ame behavior as Atum's SerializationUtils.asJson) // explanation: https://github.com/FasterXML/jackson-module-scala/issues/46#issuecomment-128770969 }