Sha256: 06a570e58a1b3a9313ec91dbb72cbbe7d1b6a99dffbb9da9803afe701ff7cf70

Contents?: true

Size: 276 Bytes

Versions: 26

Compression:

Stored size: 276 Bytes

Contents

require_relative 'suite'
require 'hotch'

Hotch() do
  1000.times do
    Dry::Validation.Schema do
      configure { config.messages = :i18n }

      required(:email).filled
      required(:age).filled(:int?, gt?: 18)
      required(:address).filled(:hash?)
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
dry-validation-0.9.4 benchmarks/profile_schema_definition.rb
dry-validation-0.9.3 benchmarks/profile_schema_definition.rb
dry-validation-0.9.2 benchmarks/profile_schema_definition.rb
dry-validation-0.9.1 benchmarks/profile_schema_definition.rb
dry-validation-0.9.0 benchmarks/profile_schema_definition.rb
dry-validation-0.8.0 benchmarks/profile_schema_definition.rb