Dry::Validation::Contract
behaves different when defined with a params Dry::Schema::Params(parent: RawSchema)
vs. params ParamsSchema
#729
Labels
Describe the bug
When
Dry::Validation::Contract
containsparams Dry::Schema::Params(parent: RawSchema)
(whereRawSchema
is defined usingDry::Schema.define do ... end
), it fails to coerce empty Strings into Integers. However, if I define aParamsSchema
usingDry::Schema::Params() do ... end
containing the same param definitions, and addparams ParamsSchema
to myDry::Validation::Contract
class, it works as expected.To Reproduce
Expected behavior
Actual behavior
My environment
ruby 3.1.3p185 (2022-11-24 revision 1a6b16756e) [x86_64-linux]
The text was updated successfully, but these errors were encountered: