These are chat archives for dry-rb/chat

25th
Jul 2017
Rafael George
@cored
Jul 25 2017 19:01
I have a definition like attribute :field, Dry::Types['string'].optional not using any hash schema constructor just the default one but for that particular field I still getting a missing key error
the documentation doesn't especify anything about the consructor schema for optional attributes
I think I found the problem
optional types means that the key can be nil not that the key can be omitted
so I guess what I need is a default value