We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 377efcf commit 3083bdcCopy full SHA for 3083bdc
cli/src/main/java/com/walmartlabs/concord/cli/CliConfig.java
@@ -20,6 +20,7 @@
20
* =====
21
*/
22
23
+import com.fasterxml.jackson.databind.DeserializationFeature;
24
import com.fasterxml.jackson.databind.JsonMappingException;
25
import com.fasterxml.jackson.databind.JsonNode;
26
import com.fasterxml.jackson.databind.node.ObjectNode;
@@ -38,7 +39,8 @@
38
39
public record CliConfig(Map<String, CliConfigContext> contexts) {
40
41
public static CliConfig load(Path path) throws IOException {
- var mapper = new YAMLMapper();
42
+ var mapper = new YAMLMapper()
43
+ .disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES);
44
45
JsonNode defaults = mapper.readTree(readDefaultConfig());
46
0 commit comments