dry-rb / dry-schema

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

Fix for filled + constrained constructor type #416

Closed robhanlon22 closed 2 years ago

robhanlon22 commented 2 years ago

Since extract_type_spec was receiving *args, the splat could possibly include something interpreted as a keyword arg (at least on Ruby 2.7.x). Make extract_type_spec take an unambiguous array.

solnic commented 2 years ago

Please rebase this as well 😄

robhanlon22 commented 2 years ago

@solnic done and ready!