Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

each doesn't accept type specs #21

Closed
flash-gordon opened this issue Feb 6, 2019 · 0 comments
Closed

each doesn't accept type specs #21

flash-gordon opened this issue Feb 6, 2019 · 0 comments
Assignees
Milestone

Comments

@flash-gordon
Copy link
Member

Dry::Schema.Params { required(:foo).value(:array).each(Types::Params::Integer) }
rule_compiler.rb:23:in `visit': undefined method `visit_constructor' for #<Dry::Schema::Compiler:0x00007fcd389d4b50>

throws an error as does

Dry::Schema.Params { required(:foo).value(:array).each { value(Types::Strict::Integer) } }

We likely want to support both options

@solnic solnic modified the milestone: 0.1.1 Feb 6, 2019
@solnic solnic added this to the 1.0.0 milestone Feb 16, 2019
@solnic solnic self-assigned this Feb 26, 2019
@solnic solnic added this to ☑️ Backlog in dry-validation 1.0.0 via automation Mar 20, 2019
@solnic solnic modified the milestones: 1.0.0, 0.4.0, 0.4.1 Mar 20, 2019
@solnic solnic modified the milestones: 0.4.1, 0.5.0 Mar 29, 2019
@solnic solnic moved this from ☑️ Backlog to ⚙️ In Progress in dry-validation 1.0.0 Apr 3, 2019
solnic added a commit that referenced this issue Apr 4, 2019
solnic added a commit that referenced this issue Apr 4, 2019
solnic added a commit that referenced this issue Apr 4, 2019
dry-validation 1.0.0 automation moved this from ⚙️ In Progress to ✅ Done Apr 4, 2019
@solnic solnic moved this from ✅ Done to 🚀 Released in dry-validation 1.0.0 Apr 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
dry-validation 1.0.0
  
🚀 Released
Development

No branches or pull requests

2 participants