Skip to content

Commit 4039ee8

Browse files
authored
Merge pull request #8 from joschi/ignore-unknown-properties
Ignore unknown properties when deserializing response bodies
2 parents 4f72dd5 + f69e693 commit 4039ee8

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

net.adoptopenjdk.v3.vanilla/src/main/java/net/adoptopenjdk/v3/vanilla/internal/AOV3ObjectMappers.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ public static ObjectMapper createObjectMapper()
3333
final JsonMapper mapper =
3434
JsonMapper.builder()
3535
.configure(DeserializationFeature.USE_BIG_INTEGER_FOR_INTS, true)
36+
.disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES)
3637
.build();
3738

3839
final var deserializers = AOV3Deserializers.create();

pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@
5858
<url>http://io7m.com</url>
5959
</developer>
6060
</developers>
61+
<contributors>
62+
<contributor>
63+
<name>Jochen Schalanda</name>
64+
<email>[email protected]</email>
65+
<url>https://github.com/joschi/</url>
66+
</contributor>
67+
</contributors>
6168

6269
<issueManagement>
6370
<url>http://github.com/AdoptOpenJDK/openjdk-api-java-client/issues</url>

0 commit comments

Comments
 (0)