Closed MaximeRVY closed 2 years ago
Hi there,
I find an issue in dry-validation related to this repo.
If we do:
required(:id).filled(:uuid_v4?)
instead of
required(:id).value(:string, :uuid_v4?)
It raise an error when someone send an integer with this error: TypeError: no implicit conversion of Integer into String
TypeError: no implicit conversion of Integer into String
So I'm wondering if we can add str?(input) in the format? method.
str?(input)
format?
What do you think ?
Thanks a lot
This is definitely intentional :) The fact that type checks can be skipped is actually an overlook we're going to fix in dry-schema 2.0, there you'll have to be explicit about types expected.
Hi there,
I find an issue in dry-validation related to this repo.
If we do:
instead of
It raise an error when someone send an integer with this error:
TypeError: no implicit conversion of Integer into String
So I'm wondering if we can add
str?(input)
in theformat?
method.What do you think ?
Thanks a lot