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.0.0.beta3 lib/hanami/cli/generators/gem/app/validator.erb