Closed grusin closed 2 years ago
Thank you! I'm surprised this isn't in our test cases. We're taking a look.
This also affected num(min=-1)
, unclear if the fix works there too, but I don't see a num
test with a negative bound.
@litghost Thanks for checking! The constraints within the validators are shared, so the new test will cover it. In this case, both int()
and num()
use the Min
constraint found here: https://github.com/23andMe/Yamale/blob/master/yamale/validators/constraints.py#L60-L71
Please let us know if you have any other questions. Thanks!
thanks for fast reaction :)
there is a regression in 4.0.0 that was released today.
int(min=-1)
does not work anymore, it has to beint(min='-1')
to work.on 3.0.7 version it used to work.
example of not working code anymore:
example of working code: