Peter Solnica
Peter Solnica
This will be properly addressed once type specs become mandatory in 2.0.0.
That's an interesting bug, thanks for the report! What if you use different key names?
@bitberry-dev hmm ok, thanks! I'll take a look
This fixes the crash but it's hard to say whether it can be treated as THE fix: ```diff diff --git lib/dry/schema/message/or.rb lib/dry/schema/message/or.rb index f8d4736..c73fcc1 100644 --- lib/dry/schema/message/or.rb +++ lib/dry/schema/message/or.rb @@...
@fijemax I'm not familiar with this library, how would this help?
thanks for spotting this and reporting, it'll be fixed in 1.5.1
@idoa01 yes, you can monkey-patch it like that: ```ruby class Dry::Schema::Message::Or::MultiPath def path [] end end ``` this should make it work
@robhanlon22 would it be possible to fix it w/o reverting?
I assigned it to 2.0.0 because all DSL inconsistencies will be easier to address after a couple of improvements/refactorings are done, and they are scheduled for 2.0.0.
``` ruby schema = Dry::Schema.JSON do required(:a).maybe do hash do required(:b).filled(:string) required(:c).value(:integer) end end end ``` @mauricioszabo ☝️ this will work leaving this open though because `filled.type` should work too