Skip to content

Commit c1f52c6

Browse files
committed
Fix not properly configuring jackson to use default value for unknown enum values
1 parent c1241bf commit c1f52c6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/org/synyx/matrix/bot/MatrixClient.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ public MatrixClient(String hostname, String username, String password) {
4040
.addModule(new JavaTimeModule())
4141
.configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false)
4242
.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false)
43+
.configure(DeserializationFeature.READ_UNKNOWN_ENUM_VALUES_USING_DEFAULT_VALUE, true)
4344
.build();
4445
this.api = new MatrixApi(hostname, authentication, objectMapper);
4546
this.state = null;

0 commit comments

Comments
 (0)