File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
rmf/rmf-java-base/src/main/java/io/vrap/rmf/base/client/utils/json Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -54,17 +54,16 @@ public static ObjectMapper createObjectMapper(final ModuleOptions options) {
5454 suppliers .iterator ().forEachRemaining (moduleSupplier -> moduleList .add (moduleSupplier .getModule (options )));
5555
5656 return JsonMapper .builder ()
57- .configure (MapperFeature .REQUIRE_TYPE_ID_FOR_SUBTYPES , false )
58- .configure (DeserializationFeature .FAIL_ON_UNKNOWN_PROPERTIES , false )
59- .configure (DeserializationFeature .FAIL_ON_MISSING_EXTERNAL_TYPE_ID_PROPERTY , false )
60- .configure (SerializationFeature .FAIL_ON_EMPTY_BEANS , false )
61- .serializationInclusion (JsonInclude .Include .NON_NULL )
62- .addModule (new JavaTimeModule ())
57+ .addModule (new JavaTimeModule ()) //provides serialization and deserialization for LocalDate and LocalTime (JSR310 Jackson module)
6358 .addModule (new ZonedDateTimeSerializationModule ()) //custom serializer for LocalDate, LocalTime and ZonedDateTime
6459 .addModule (new ZonedDateTimeDeserializationModule ()) //custom deserializer for ZonedDateTime
6560 .addModule (new LocalDateDeserializationModule ()) //custom deserializer for LocalDate
6661 .addModules (loader )
6762 .addModules (moduleList )
63+ .configure (MapperFeature .REQUIRE_TYPE_ID_FOR_SUBTYPES , false )
64+ .configure (DeserializationFeature .FAIL_ON_UNKNOWN_PROPERTIES , false )
65+ .configure (SerializationFeature .FAIL_ON_EMPTY_BEANS , false )
66+ .serializationInclusion (JsonInclude .Include .NON_NULL )
6867 .build ();
6968 }
7069
You can’t perform that action at this time.
0 commit comments