Skip to content

Commit

Permalink
Disable FAIL_ON_UNKNOWN_PROPERTIES in FidoMetadataDownloader Jackson …
Browse files Browse the repository at this point in the history
…deserializer
  • Loading branch information
emlun committed Sep 3, 2024
1 parent d2a0664 commit 533bf0f
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,13 @@

class JacksonCodecs {

static ObjectMapper jsonWithDefaultEnums() {
static ObjectMapper json() {
return com.yubico.internal.util.JacksonCodecs.json()
.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
}

static ObjectMapper jsonWithDefaultEnums() {
return json()
.configure(DeserializationFeature.READ_UNKNOWN_ENUM_VALUES_USING_DEFAULT_VALUE, true);
}
}

0 comments on commit 533bf0f

Please sign in to comment.