Open fliphess opened 4 years ago
Apparently I have the same behaviour with several other operators (not-empty, present, in) that return OKAY when there are purposefully created bugs that should fail the check.
Using -verbose
shows me the check on itself is faulty and as a result completely ignored, which is not shown when using -validate
.
Would it be possible to change this behaviour into a hard fail?
I think it's much safer to bail out when a rule is incorrect rather than skipping it without mention which implies all is well, like when the check succeeds.
Hey :) Thanks for writing this utility.
I have some questions regarding missing keys or checks that are suppose to fail but dont.
I have the following yaml:
When I on purpose remove a few chars so that the assertion is supposed to fail:
.... The check still succeeds.
Is this intended behaviour? It looks like a regex is used or a string in string comparison where the full key should be checked instead.