Skip to content

Commit

Permalink
Fix Deserialization Exception for DRepMetadata Json Field
Browse files Browse the repository at this point in the history
  • Loading branch information
edridudi committed Sep 21, 2024
1 parent 1d606f4 commit 2ea9d73
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ Resource and maintenance requirements for Cardano blockchain components (e.g. ca

| Koios Instance | Koios Java Client |
|:--------------:|:-----------------:|
| 1.2.0 | 1.19.2 |
| 1.2.0 | 1.19.3 |
| 1.1.2 | 1.18.2 |
| 1.0.10 | 1.17.3 |
| 1.0.9 | 1.16.3 |
Expand All @@ -422,13 +422,13 @@ Resource and maintenance requirements for Cardano blockchain components (e.g. ca
<dependency>
<groupId>io.github.cardano-community</groupId>
<artifactId>koios-java-client</artifactId>
<version>1.19.2</version>
<version>1.19.3</version>
</dependency>
```

- For Gradle, add the following dependency to build.gradle
```
compile group: 'io.github.cardano-community', name: 'koios-java-client', version: '1.19.2'
compile group: 'io.github.cardano-community', name: 'koios-java-client', version: '1.19.3'
```

### Get Koios Backend Service (No API Token)
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>io.github.cardano-community</groupId>
<artifactId>koios-java-client</artifactId>
<version>1.19.2</version>
<version>1.19.3</version>
<name>${project.groupId}:${project.artifactId}</name>
<description>Koios Java Client is a Java REST Client library which allows interacting with Koios Server Instances using Java Objects</description>
<url>https://github.com/cardano-community/koios-java-client</url>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package rest.koios.client.backend.api.governance.model;

import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.PropertyNamingStrategies;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import lombok.*;
Expand Down Expand Up @@ -43,7 +44,7 @@ public class DRepMetadata {
/**
* The raw bytes of the payload (null if not applicable)
*/
private String json;
private JsonNode json;

/**
* A warning that occurred while validating the metadata (null if not applicable)
Expand Down

0 comments on commit 2ea9d73

Please sign in to comment.