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

Provide a way of defining schemas for arrays as root nodes #22

Open
flash-gordon opened this issue Feb 6, 2019 · 2 comments

Comments

Projects
None yet
3 participants
@flash-gordon
Copy link
Member

commented Feb 6, 2019

As an example

Dry::Schema.JSON do
  each do
    schema do
      required(:name).filled(:str?)
      required(:age).filled(:int?)
    end
  end
end
@Morozzzko

This comment has been minimized.

@solnic

This comment has been minimized.

Copy link
Member

commented Jun 4, 2019

I've been thinking about it, we could give this a shot, we have better APIs to build this feature now. The only difference would be to use array instead of each.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.