Sha256: 9c794d875deed86e854069918b3c6b1053e41111d85c8706ee36867f0a597081
Contents?: true
Size: 212 Bytes
Versions: 18
Compression:
Stored size: 212 Bytes
Contents
require 'dry-validation' schema = Dry::Validation.Form do required(:email).filled required(:age).filled(:int?, gt?: 18) end errors = schema.call('email' => '', 'age' => '18').messages puts errors.inspect
Version data entries
18 entries across 18 versions & 1 rubygems