solnic on v0.9.0
dry-bot on master
[devtools] sync (compare)
solnic on master
Update changelog.yml Bump dry-matcher to 0.9.0 (compare)
dry-bot on master
[devtools] update changelog.yml… [devtools] sync (compare)
solnic on master
Turn evaluator into an Object d… Merge pull request #32 from dry… (compare)
timriley on add-0-19-0-changelog
Add changelog entry for 0.19.0 (compare)
timriley on add-0-19-0-changelog
Add changelog entry for 0.19.0 (compare)
Base
as default there but Dry::Struct
Hi guys, it seems that I maybe encounter a bug of dry-types SUM
, but I'm not sure. Could you help me on this?
It happens when I try to verify a object which should be a hash or a string
test = Dry::Types['hash'].map(Dry::Types['symbol'], Dry::Types['strict.string']) | Dry::Types['strict.string']
test[a: 'b'] # passed as expected
test['a' => 'b'] # should fail but pass!
test['test'] # passed as expected
test[12345] # should fail but pass!
I'm wondering if there is anything that I didn't notice or I use the wrong way to build my rule. Thanks :)