You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,7 @@
18
18
19
19
1. Slow uniqueness check (> 2hrs for 100k samples) made 400x faster by switching from `findAll` to a `subMap` for isolating the required unique fields.
20
20
2.`patternProperties` now has greater support, with no warnings about invalid parameters which actually match a pattern
21
+
3. Added better error handling and debug messages to the configuration parser.
log.debug("Set `validation.help.showHidden` to ${showHidden} (Due to --${showHiddenParameter})")
53
+
} elseif(config.showHidden instanceofBoolean) {
54
+
showHidden = config.showHidden
55
+
log.debug("Set `validation.help.showHidden` to ${showHidden}")
56
+
} else {
57
+
log.warn("Incorrect value detected for `validation.help.showHidden` or `--${showHiddenParameter}`, a boolean is expected. Defaulting to `${showHidden}`")
58
+
}
59
+
}
60
+
61
+
// shortParameter
62
+
if(config.containsKey("shortParameter")) {
63
+
if(config.shortParameter instanceofString) {
64
+
shortParameter = config.shortParameter
65
+
log.debug("Set `validation.help.shortParameter` to ${shortParameter}")
66
+
} else {
67
+
log.warn("Incorrect value detected for `validation.help.shortParameter`, a string is expected. Defaulting to `${shortParameter}`")
68
+
}
69
+
}
70
+
71
+
// fullParameter
72
+
if(config.containsKey("fullParameter")) {
73
+
if(config.fullParameter instanceofString) {
74
+
fullParameter = config.fullParameter
75
+
log.debug("Set `validation.help.fullParameter` to ${fullParameter}")
76
+
} else {
77
+
log.warn("Incorrect value detected for `validation.help.fullParameter`, a string is expected. Defaulting to `${fullParameter}`")
78
+
}
79
+
}
80
+
81
+
// beforeText
82
+
if(config.containsKey("beforeText")) {
83
+
if(config.beforeText instanceofString) {
84
+
if(monochromeLogs) {
85
+
beforeText = config.beforeText
86
+
} else {
87
+
beforeText = removeColors(config.beforeText)
88
+
}
89
+
log.debug("Set `validation.help.beforeText` to ${beforeText}")
90
+
} else {
91
+
log.warn("Incorrect value detected for `validation.help.beforeText`, a string is expected. Defaulting to `${beforeText}`")
92
+
}
93
+
}
94
+
95
+
// afterText
96
+
if(config.containsKey("afterText")) {
97
+
if(config.afterText instanceofString) {
98
+
if(monochromeLogs) {
99
+
afterText = config.afterText
100
+
} else {
101
+
afterText = removeColors(config.afterText)
102
+
}
103
+
log.debug("Set `validation.help.afterText` to ${afterText}")
104
+
} else {
105
+
log.warn("Incorrect value detected for `validation.help.afterText`, a string is expected. Defaulting to `${afterText}`")
106
+
}
107
+
}
108
+
109
+
// command
110
+
if(config.containsKey("command")) {
111
+
if(config.command instanceofString) {
112
+
if(monochromeLogs) {
113
+
command = config.command
114
+
} else {
115
+
command = removeColors(config.command)
116
+
}
117
+
log.debug("Set `validation.help.command` to ${command}")
118
+
} else {
119
+
log.warn("Incorrect value detected for `validation.help.command`, a string is expected. Defaulting to `${command}`")
log.debug("Set `validation.failUnrecognisedHeaders` to ${failUnrecognisedHeaders}")
71
+
} else {
72
+
log.warn("Incorrect value detected for `validation.failUnrecognisedHeaders`, a boolean is expected. Defaulting to `${failUnrecognisedHeaders}`")
73
+
}
74
+
}
75
+
76
+
// showHiddenParams
43
77
if(config.containsKey("showHiddenParams")) {
44
78
log.warn("configuration option `validation.showHiddenParams` is deprecated, please use `validation.help.showHidden` or the `--showHidden` parameter instead")
79
+
if(config.showHiddenParams instanceofBoolean) {
80
+
showHiddenParams = config.showHiddenParams
81
+
log.debug("Set `validation.showHiddenParams` to ${showHiddenParams}")
82
+
} else {
83
+
log.warn("Incorrect value detected for `validation.showHiddenParams`, a boolean is expected. Defaulting to `${showHiddenParams}`")
0 commit comments