Sha256: f1ed26a86587cdd7c72c5a87bb1772ed5ce5878dcde4313584f411ceacff05e6

Contents?: true

Size: 672 Bytes

Versions: 32

Compression:

Stored size: 672 Bytes

Contents

# frozen_string_literal: true

module Karafka
  module Routing
    module Features
      class ManualOffsetManagement < Base
        # Rules around manual offset management settings
        class Contract < Contracts::Base
          configure do |config|
            config.error_messages = YAML.safe_load(
              File.read(
                File.join(Karafka.gem_root, 'config', 'locales', 'errors.yml')
              )
            ).fetch('en').fetch('validations').fetch('topic')
          end

          nested :manual_offset_management do
            required(:active) { |val| [true, false].include?(val) }
          end
        end
      end
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
karafka-2.1.13 lib/karafka/routing/features/manual_offset_management/contract.rb
karafka-2.1.12 lib/karafka/routing/features/manual_offset_management/contract.rb
karafka-2.1.11 lib/karafka/routing/features/manual_offset_management/contract.rb
karafka-2.1.10 lib/karafka/routing/features/manual_offset_management/contract.rb
karafka-2.1.9 lib/karafka/routing/features/manual_offset_management/contract.rb
karafka-2.1.8 lib/karafka/routing/features/manual_offset_management/contract.rb
karafka-2.1.7 lib/karafka/routing/features/manual_offset_management/contract.rb
karafka-2.1.6 lib/karafka/routing/features/manual_offset_management/contract.rb
karafka-2.1.5 lib/karafka/routing/features/manual_offset_management/contract.rb
karafka-2.1.5.beta1 lib/karafka/routing/features/manual_offset_management/contract.rb
karafka-2.1.4 lib/karafka/routing/features/manual_offset_management/contract.rb
karafka-2.1.3 lib/karafka/routing/features/manual_offset_management/contract.rb
karafka-2.1.2 lib/karafka/routing/features/manual_offset_management/contract.rb
karafka-2.1.1 lib/karafka/routing/features/manual_offset_management/contract.rb
karafka-2.1.0 lib/karafka/routing/features/manual_offset_management/contract.rb
karafka-2.0.41 lib/karafka/routing/features/manual_offset_management/contract.rb
karafka-2.0.40 lib/karafka/routing/features/manual_offset_management/contract.rb
karafka-2.0.39 lib/karafka/routing/features/manual_offset_management/contract.rb
karafka-2.0.38 lib/karafka/routing/features/manual_offset_management/contract.rb
karafka-2.0.37 lib/karafka/routing/features/manual_offset_management/contract.rb