File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
java/src/main/java/io/cucumber/messages/cli Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 1313import io .cucumber .messages .NdjsonToMessageIterable ;
1414import io .cucumber .messages .types .Envelope ;
1515
16+ import static com .fasterxml .jackson .annotation .JsonInclude .Value .construct ;
1617
1718final class Jackson {
1819
1920 static final JsonMapper OBJECT_MAPPER = JsonMapper .builder ()
2021 .addModule (new Jdk8Module ())
2122 .addModule (new ParameterNamesModule (Mode .PROPERTIES ))
22- .serializationInclusion (Include .NON_ABSENT )
23+ .defaultPropertyInclusion (construct (
24+ Include .NON_ABSENT ,
25+ Include .NON_ABSENT ))
2326 .constructorDetector (ConstructorDetector .USE_PROPERTIES_BASED )
2427 .enable (SerializationFeature .WRITE_ENUMS_USING_TO_STRING )
2528 .enable (DeserializationFeature .READ_ENUMS_USING_TO_STRING )
You can’t perform that action at this time.
0 commit comments