Skip to content

Commit 4795372

Browse files
authored
Merge pull request #11 from sornerol/10-fix-UnrecognizedPropertyException
10 fix unrecognized property exception
2 parents c7e0145 + f45eec0 commit 4795372

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Add the following dependency to the dependencies section of your project's `pom.
1818
<dependency>
1919
<groupId>io.github.sornerol</groupId>
2020
<artifactId>chesscom-pubapi-wrapper</artifactId>
21-
<version>1.0.0</version>
21+
<version>1.2.0</version>
2222
</dependency>
2323
</dependencies
2424
```
@@ -27,7 +27,7 @@ Add the following dependency to the dependencies section of your project's `buil
2727
```
2828
dependencies {
2929
// other project dependencies...
30-
compile 'io.github.sornerol:chesscom-pubapi-wrapper:1.0.0'
30+
compile 'io.github.sornerol:chesscom-pubapi-wrapper:1.2.0'
3131
}
3232
```
3333

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>io.github.sornerol</groupId>
88
<artifactId>chesscom-pubapi-wrapper</artifactId>
9-
<version>1.1.0</version>
9+
<version>1.2.0</version>
1010
<packaging>jar</packaging>
1111

1212
<name>${project.groupId}:${project.artifactId}</name>
@@ -34,7 +34,7 @@
3434
<properties>
3535
<maven.compiler.source>8</maven.compiler.source>
3636
<maven.compiler.target>8</maven.compiler.target>
37-
<jackson.version>2.13.2</jackson.version>
37+
<jackson.version>2.14.2</jackson.version>
3838
</properties>
3939

4040
<dependencies>
@@ -57,7 +57,7 @@
5757
<dependency>
5858
<groupId>org.apache.httpcomponents</groupId>
5959
<artifactId>httpclient</artifactId>
60-
<version>4.5.13</version>
60+
<version>4.5.14</version>
6161
</dependency>
6262
<dependency>
6363
<groupId>commons-io</groupId>

src/main/java/io/github/sornerol/chess/pubapi/client/PubApiClientBase.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package io.github.sornerol.chess.pubapi.client;
22

3+
import com.fasterxml.jackson.databind.DeserializationFeature;
34
import com.fasterxml.jackson.databind.ObjectMapper;
45
import io.github.sornerol.chess.pubapi.client.enums.ResponseCode;
56
import io.github.sornerol.chess.pubapi.client.enums.RetryStrategy;
@@ -100,6 +101,7 @@ protected <T> T getRequest(String endpoint, Class<T> clazz) throws IOException,
100101
String responseJson = getRequest(endpoint);
101102

102103
ObjectMapper objectMapper = new ObjectMapper();
104+
objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
103105
return objectMapper.readValue(responseJson, clazz);
104106
}
105107

0 commit comments

Comments
 (0)