Closed aweigold closed 5 years ago
Unit tests should also be included to prove deserialization with both unknown types and unknown properties.
This is completed in the 2.0 branch... needs to be merged into master.
hello, I had the same problem.Please, how do I write the Jackson configuration file for the ignore attribute
Hi @MrJINXIN . This was fixed with the 2.0.3 release of the SDK.
Motivation
Issues like #77 and #73 are demonstrating that strict validation of responses in deserialization is problematic and can cause breaking changes for consumers.
Proposed solution
Configure the Jackson ObjectMapper to not fail on unknown properties and types.
Additional context
The
ObjectMapper
has aconfigure
method which can be leveraged to adjust features of Jackson's behavior. See the DeserializationFeature for reference to related items.