dry-rb / dry-schema

Coercion and validation for data structures
https://dry-rb.org/gems/dry-schema
MIT License
424 stars 110 forks source link

update README with instructions on sum types #482

Closed timhwang21 closed 4 weeks ago

timhwang21 commented 1 month ago

I had to look into specs to discover that this behavior was supported:

https://github.com/dry-rb/dry-schema/blob/main/spec/integration/params/macros/value_spec.rb#L31

I feel this is a very useful pattern, and that making it more discoverable will be more user-friendly.

solnic commented 4 weeks ago

Thanks!