Closed adietish closed 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.
ToolsConfig
@JsonIgnoreProperties(ignoreUnknown = true)
Tools
UnrecognizedPropertyException
tools.json
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):
description
odo
"tools": { "odo": { "description": "odo CLI",
Kudos, SonarCloud Quality Gate passed!
0 Bugs 0 Vulnerabilities 0 Security Hotspots 0 Code Smells
No Coverage information No Duplication information
ToolsConfig
is annotated with@JsonIgnoreProperties(ignoreUnknown = true)
but it's missing fromTools
and jackson thus throwsUnrecognizedPropertyException
when a tool intools.json
contains unknown properties.To reproduce add
description
property toodo
intools.json
or simply copytools.json
over from vscode-openshift-tools (https://github.com/redhat-developer/vscode-openshift-tools/blob/main/src/tools.json#L3C9-L3C34):