Unlike other, well known, validation solutions in Ruby, dry-validation takes a different approach and focuses a lot on explicitness, clarity and precision of validation logic. It is designed to work with any data input, whether it’s a simple hash, an array or a complex object with deeply nested data.

It is based on the idea that each validation is encapsulated by a simple, stateless, predicate that receives some input and returns either true or false. Those predicates are encapsulated by rules which can be composed together using predicate logic. This means you can use the common logic operators to build up a validation schema.

Code Quality Rank: L5
Monthly Downloads: 389,490
Programming language: Ruby
License: MIT License

dry-validation alternatives and related gems

Based on the "Validation" category

Do you think we are missing an alternative of dry-validation or a related project?

Add another 'Validation' Gem

dry-validation Recommendations

There are no recommendations yet. Be the first to promote dry-validation!

Have you used dry-validation? Share your experience. Write a short recommendation and dry-validation, you and your project will be promoted on Awesome Ruby.
Recommend dry-validation

Recently added dry-validation resources

Do you know of a useful tutorial, book or news relevant to dry-validation?
Be the first to add one!