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
When DV's YAML parser converts to JSON internally, the threshold is represented as a float, so it needs .as[Float] there. The core problem is the discard of the Left[DecodingFailure] when the .as() fails.
DV's ConfigParserSpec doesn't fail when the thresholds are added because the checks inside of ValidatorTable are not checked in the equality assertion because ValidatorTable is an abstract class and thus its members, including the checks, aren't checked.
Impact
Since all checks parse their own config, we've gotta fix this across all checks with thresholds individually. This might be a time to centralize that configuration.
Describe the bug
When specifying a check with a threshold that will parse to a JSON float, e.g.
the threshold will be ignored.
To Reproduce
Configure a check with:
or put that into a test in
NullCheckSpec
.Expected behavior
Thresholds specified as floats should work.
The text was updated successfully, but these errors were encountered: