Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix FidoMetadataDownloader failure on unknown properties #376

Merged
merged 13 commits into from
Sep 3, 2024
Merged
Prev Previous commit
Next Next commit
Disable FAIL_ON_UNKNOWN_PROPERTIES in FidoMetadataDownloader Jackson …
…deserializer
emlun committed Sep 3, 2024

Verified

This commit was signed with the committer’s verified signature.
emlun Emil Lundberg
commit 533bf0f124ef8db6fdbc62223e0093ff15b9a37f
Original file line number Diff line number Diff line change
@@ -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);
}
}