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.
dry-validation alternatives and related gems
Based on the "Validation" category
Active Record validation helpers for your Rails project
Do you think we are missing an alternative of dry-validation or a related project?
dry-validation RecommendationsThere 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.
Recently added dry-validation resources
Be the first to add one!