Skip to content

Commit

Permalink
fix: don't fail when encountering unknown properties (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Kolstad authored Apr 6, 2022
1 parent faf9248 commit fa47605
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/kotlin/io/getunleash/data/Parser.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package io.getunleash.data

import com.fasterxml.jackson.databind.DeserializationFeature
import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.databind.SerializationFeature
import com.fasterxml.jackson.databind.util.StdDateFormat
Expand All @@ -10,5 +11,5 @@ object Parser {
jacksonObjectMapper().disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS)
.setDateFormat(
StdDateFormat().withColonInTimeZone(true)
)
}
).disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES)
}

0 comments on commit fa47605

Please sign in to comment.