Skip to content

Commit

Permalink
fix: ignore unknown properties when unmarshalling ToolsConfig
Browse files Browse the repository at this point in the history
Signed-off-by: Andre Dietisheim <[email protected]>
  • Loading branch information
adietish committed Oct 5, 2023
1 parent 049c7ce commit 03e9f24
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
******************************************************************************/
package com.redhat.devtools.intellij.common.utils;

import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.dataformat.yaml.YAMLFactory;
import io.fabric8.kubernetes.api.model.AuthInfo;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

@JsonIgnoreProperties(ignoreUnknown = true)
public class ToolsConfig {

@JsonIgnoreProperties(ignoreUnknown = true)
public static class Tool {
private Map<String, Platform> platforms = new HashMap<>();

Expand Down Expand Up @@ -85,6 +87,7 @@ public void setSilentMode(boolean silentMode) {
}
}

@JsonIgnoreProperties(ignoreUnknown = true)
public static class Platform {
private URL url;
private String cmdFileName;
Expand Down

0 comments on commit 03e9f24

Please sign in to comment.