Sha256: db7a54fde046c94618f6653715a5b49e40fa81651e9e0c878366587c09175266

Contents?: true

Size: 290 Bytes

Versions: 21

Compression:

Stored size: 290 Bytes

Contents

# auto_register: false
# frozen_string_literal: true

require "dry/validation"
require "dry/schema/messages/i18n"

module <%= camelized_app_name %>
  module Validator < Dry::Validation::Contract
    config.messages.backend = :i18n
    config.messages.top_namespace = "validation"
  end
end

Version data entries

21 entries across 21 versions & 2 rubygems

Version Path
hanami-cli-2.2.1 lib/hanami/cli/generators/gem/app/validator.erb
hanami-cli-2.2.0 lib/hanami/cli/generators/gem/app/validator.erb
hanami-cli-2.2.0.rc1 lib/hanami/cli/generators/gem/app/validator.erb
hanami-cli_bulma-0.0.2 lib/hanami/cli_bulma/generators/gem/app/validator.erb
hanami-cli_bulma-0.0.1 lib/hanami/cli_bulma/generators/gem/app/validator.erb
hanami-cli-2.2.0.beta2 lib/hanami/cli/generators/gem/app/validator.erb
hanami-cli-2.2.0.beta1 lib/hanami/cli/generators/gem/app/validator.erb
hanami-cli-2.1.1 lib/hanami/cli/generators/gem/app/validator.erb
hanami-cli-2.1.0 lib/hanami/cli/generators/gem/app/validator.erb
hanami-cli-2.1.0.rc3 lib/hanami/cli/generators/gem/app/validator.erb
hanami-cli-2.1.0.rc2 lib/hanami/cli/generators/gem/app/validator.erb
hanami-cli-2.1.0.rc1 lib/hanami/cli/generators/gem/app/validator.erb
hanami-cli-2.1.0.beta2 lib/hanami/cli/generators/gem/app/validator.erb
hanami-cli-2.1.0.beta1 lib/hanami/cli/generators/gem/app/validator.erb
hanami-cli-2.0.3 lib/hanami/cli/generators/gem/app/validator.erb
hanami-cli-2.0.2 lib/hanami/cli/generators/gem/app/validator.erb
hanami-cli-2.0.1 lib/hanami/cli/generators/gem/app/validator.erb
hanami-cli-2.0.0 lib/hanami/cli/generators/gem/app/validator.erb
hanami-cli-2.0.0.rc1 lib/hanami/cli/generators/gem/app/validator.erb
hanami-cli-2.0.0.beta4 lib/hanami/cli/generators/gem/app/validator.erb