Provide a way of defining schemas for arrays as root nodes
Open
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
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