Unknown fields in the check section of .yaml
should cause WARN
log messages.
#15
Labels
bug
Something isn't working
.yaml
should cause WARN
log messages.
#15
While testing
stringLengthCheck
I accidently referencedminLength
instead ofminValue
This caused
configTest()
to fail for no apparent reason and took me a really long time to debug because the program was not logging any useful information.configTest()
did generate aValidatorError()
event in theeventLog
, but the program doesn't write thereport.json
or HTML report onconfigTest()
failures.The new
Object.fromJson()
constructors should log a warn for every unknown field present in the config.In general, I do not think that unknown fields should be an error, only a warning, this helps keeps the config "compatible" across versions.
Maybe create a cli option for strict config parsing.
The text was updated successfully, but these errors were encountered: