Sha256: e69f16bf7509b8a836e70620a9495d8242bd056952acb02873de1cace67e7ae7

Contents?: true

Size: 323 Bytes

Versions: 8

Compression:

Stored size: 323 Bytes

Contents

# auto_register: false
# frozen_string_literal: true

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

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
hanami-cli-2.0.0.alpha8.1 lib/hanami/cli/generators/gem/application/monolith/validation_contract.erb
hanami-cli-2.0.0.alpha8 lib/hanami/cli/generators/gem/application/monolith/validation_contract.erb
hanami-cli-2.0.0.alpha7 lib/hanami/cli/generators/gem/application/monolith/validation_contract.erb
hanami-cli-2.0.0.alpha6.1 lib/hanami/cli/generators/gem/application/monolith/validation_contract.erb
hanami-cli-2.0.0.alpha6 lib/hanami/cli/generators/gem/application/monolith/validation_contract.erb
hanami-cli-2.0.0.alpha4 lib/hanami/cli/generators/gem/application/monolith/validation_contract.erb
hanami-cli-2.0.0.alpha3 lib/hanami/cli/generators/gem/application/monolith/validation_contract.erb
hanami-cli-2.0.0.alpha2 lib/hanami/cli/generators/gem/application/monolith/validation_contract.erb