dry-rb / dry-rb/dry-schema

Provide a way of defining schemas for arrays as root nodes

Open
#22 11 comments 9 reactions 0 assignees View on GitHub
feature
Dominant language
Ruby
Stars
492
Forks
123
PR merge metrics
No merged PRs in 30d

Description

As an example
```ruby
Dry::Schema.JSON do
each do
schema do
required(:name).filled(:str?)
required(:age).filled(:int?)
end
end
end
```

Contributor guide

Open the contributing guide

Research direction

Read the existing Dry::Schema.JSON entry point and the each/schema DSL behavior first, then trace how schemas currently handle object roots. Define how the shown array-root example should be accepted and validated, and confirm completion with coverage for array roots and nested name/age rules.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.