Sha256: c1b2417c33ff3400d0ca5d768b4bf3297877d76916ac89257afe231e24bd2dea
Contents?: true
Size: 621 Bytes
Versions: 98
Compression:
Stored size: 621 Bytes
Contents
# frozen_string_literal: true module Karafka module Contracts # Base contract for all Karafka contracts class Base < ::Karafka::Core::Contractable::Contract # @param data [Hash] data for validation # @return [Boolean] true if all good # @raise [Errors::InvalidConfigurationError] invalid configuration error # @note We use contracts only in the config validation context, so no need to add support # for multiple error classes. It will be added when it will be needed. def validate!(data) super(data, Errors::InvalidConfigurationError) end end end end
Version data entries
98 entries across 98 versions & 1 rubygems