Dry Schema
Validate nested Ruby input and coerce parameter types.
dry-rb · Code and testing
GitHub projectOpen source Open on GitHubHow to try it
With Ruby 3.2 available, install dry-schema at version 1.13.4. Check a synthetic fruit record with a numeric string.
What we tested
1.13.4. Check a synthetic fruit record with a numeric string. The schema accepted the record and converted the count to integer 5.