redhat-developer / intellij-common

4 stars 11 forks source link

fix: ignore unknown properties when unmarshalling ToolsConfig #199

Closed adietish closed 11 months ago

adietish commented 11 months ago

ToolsConfig is annotated with @JsonIgnoreProperties(ignoreUnknown = true) but it's missing from Tools and jackson thus throws UnrecognizedPropertyException when a tool in tools.json contains unknown properties.

To reproduce add description property to odo in tools.json or simply copy tools.json over from vscode-openshift-tools (https://github.com/redhat-developer/vscode-openshift-tools/blob/main/src/tools.json#L3C9-L3C34):

    "tools": {
       "odo": {
            "description": "odo CLI",
sonarcloud[bot] commented 11 months ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information