lib/karafka/contracts/server_cli_options.rb in karafka-1.3.3 vs lib/karafka/contracts/server_cli_options.rb in karafka-1.3.4
- old
+ new
@@ -4,9 +4,11 @@
module Contracts
# Contract for validating correctness of the server cli command options
# We validate some basics + the list of consumer_groups on which we want to use, to make
# sure that all of them are defined, plus that a pidfile does not exist
class ServerCliOptions < Dry::Validation::Contract
+ config.messages.load_paths << File.join(Karafka.gem_root, 'config', 'errors.yml')
+
params do
optional(:pid).filled(:str?)
optional(:daemon).filled(:bool?)
optional(:consumer_groups).value(:array, :filled?)
end