Skip to content

Commit

Permalink
Fix Jackson deserialization for 7.17 snapshot repo data
Browse files Browse the repository at this point in the history
Signed-off-by: Andre Kurait <[email protected]>
  • Loading branch information
AndreKurait committed Jun 19, 2024
1 parent b797e4f commit bfe11fa
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.rfs.version_es_7_10;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;

import java.io.File;
Expand All @@ -16,6 +17,7 @@
public class SnapshotRepoData_ES_7_10 {
public static SnapshotRepoData_ES_7_10 fromRepoFile(Path filePath) {
ObjectMapper mapper = new ObjectMapper();
mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
try {
SnapshotRepoData_ES_7_10 data = mapper.readValue(new File(filePath.toString()), SnapshotRepoData_ES_7_10.class);
data.filePath = filePath;
Expand Down

0 comments on commit bfe11fa

Please sign in to comment.