diff --git a/codegen/projections/high_score_service/lib/high_score_service/config.rb b/codegen/projections/high_score_service/lib/high_score_service/config.rb index 4c28939a9..679f09037 100644 --- a/codegen/projections/high_score_service/lib/high_score_service/config.rb +++ b/codegen/projections/high_score_service/lib/high_score_service/config.rb @@ -91,16 +91,16 @@ module HighScoreService private def validate! - Hearth::Validator.validate_type!(disable_host_prefix, TrueClass, FalseClass, context: 'config[:disable_host_prefix]') - Hearth::Validator.validate_type!(endpoint, String, context: 'config[:endpoint]') - Hearth::Validator.validate_type!(http_client, Hearth::HTTP::Client, context: 'config[:http_client]') - Hearth::Validator.validate_type!(interceptors, Hearth::InterceptorList, context: 'config[:interceptors]') - Hearth::Validator.validate_type!(log_level, Symbol, context: 'config[:log_level]') - Hearth::Validator.validate_type!(logger, Logger, context: 'config[:logger]') - Hearth::Validator.validate_type!(plugins, Hearth::PluginList, context: 'config[:plugins]') - Hearth::Validator.validate_type!(retry_strategy, Hearth::Retry::Strategy, context: 'config[:retry_strategy]') - Hearth::Validator.validate_type!(stub_responses, TrueClass, FalseClass, context: 'config[:stub_responses]') - Hearth::Validator.validate_type!(validate_input, TrueClass, FalseClass, context: 'config[:validate_input]') + Hearth::Validator.validate_types!(disable_host_prefix, TrueClass, FalseClass, context: 'config[:disable_host_prefix]') + Hearth::Validator.validate_types!(endpoint, String, context: 'config[:endpoint]') + Hearth::Validator.validate_types!(http_client, Hearth::HTTP::Client, context: 'config[:http_client]') + Hearth::Validator.validate_types!(interceptors, Hearth::InterceptorList, context: 'config[:interceptors]') + Hearth::Validator.validate_types!(log_level, Symbol, context: 'config[:log_level]') + Hearth::Validator.validate_types!(logger, Logger, context: 'config[:logger]') + Hearth::Validator.validate_types!(plugins, Hearth::PluginList, context: 'config[:plugins]') + Hearth::Validator.validate_types!(retry_strategy, Hearth::Retry::Strategy, context: 'config[:retry_strategy]') + Hearth::Validator.validate_types!(stub_responses, TrueClass, FalseClass, context: 'config[:stub_responses]') + Hearth::Validator.validate_types!(validate_input, TrueClass, FalseClass, context: 'config[:validate_input]') end def self.defaults diff --git a/codegen/projections/rails_json/lib/rails_json/config.rb b/codegen/projections/rails_json/lib/rails_json/config.rb index 94a2072ea..70ce3a1ad 100644 --- a/codegen/projections/rails_json/lib/rails_json/config.rb +++ b/codegen/projections/rails_json/lib/rails_json/config.rb @@ -91,16 +91,16 @@ module RailsJson private def validate! - Hearth::Validator.validate_type!(disable_host_prefix, TrueClass, FalseClass, context: 'config[:disable_host_prefix]') - Hearth::Validator.validate_type!(endpoint, String, context: 'config[:endpoint]') - Hearth::Validator.validate_type!(http_client, Hearth::HTTP::Client, context: 'config[:http_client]') - Hearth::Validator.validate_type!(interceptors, Hearth::InterceptorList, context: 'config[:interceptors]') - Hearth::Validator.validate_type!(log_level, Symbol, context: 'config[:log_level]') - Hearth::Validator.validate_type!(logger, Logger, context: 'config[:logger]') - Hearth::Validator.validate_type!(plugins, Hearth::PluginList, context: 'config[:plugins]') - Hearth::Validator.validate_type!(retry_strategy, Hearth::Retry::Strategy, context: 'config[:retry_strategy]') - Hearth::Validator.validate_type!(stub_responses, TrueClass, FalseClass, context: 'config[:stub_responses]') - Hearth::Validator.validate_type!(validate_input, TrueClass, FalseClass, context: 'config[:validate_input]') + Hearth::Validator.validate_types!(disable_host_prefix, TrueClass, FalseClass, context: 'config[:disable_host_prefix]') + Hearth::Validator.validate_types!(endpoint, String, context: 'config[:endpoint]') + Hearth::Validator.validate_types!(http_client, Hearth::HTTP::Client, context: 'config[:http_client]') + Hearth::Validator.validate_types!(interceptors, Hearth::InterceptorList, context: 'config[:interceptors]') + Hearth::Validator.validate_types!(log_level, Symbol, context: 'config[:log_level]') + Hearth::Validator.validate_types!(logger, Logger, context: 'config[:logger]') + Hearth::Validator.validate_types!(plugins, Hearth::PluginList, context: 'config[:plugins]') + Hearth::Validator.validate_types!(retry_strategy, Hearth::Retry::Strategy, context: 'config[:retry_strategy]') + Hearth::Validator.validate_types!(stub_responses, TrueClass, FalseClass, context: 'config[:stub_responses]') + Hearth::Validator.validate_types!(validate_input, TrueClass, FalseClass, context: 'config[:validate_input]') end def self.defaults diff --git a/codegen/projections/weather/lib/weather/config.rb b/codegen/projections/weather/lib/weather/config.rb index 00d0158a9..c03441e6e 100644 --- a/codegen/projections/weather/lib/weather/config.rb +++ b/codegen/projections/weather/lib/weather/config.rb @@ -91,16 +91,16 @@ module Weather private def validate! - Hearth::Validator.validate_type!(disable_host_prefix, TrueClass, FalseClass, context: 'config[:disable_host_prefix]') - Hearth::Validator.validate_type!(endpoint, String, context: 'config[:endpoint]') - Hearth::Validator.validate_type!(http_client, Hearth::HTTP::Client, context: 'config[:http_client]') - Hearth::Validator.validate_type!(interceptors, Hearth::InterceptorList, context: 'config[:interceptors]') - Hearth::Validator.validate_type!(log_level, Symbol, context: 'config[:log_level]') - Hearth::Validator.validate_type!(logger, Logger, context: 'config[:logger]') - Hearth::Validator.validate_type!(plugins, Hearth::PluginList, context: 'config[:plugins]') - Hearth::Validator.validate_type!(retry_strategy, Hearth::Retry::Strategy, context: 'config[:retry_strategy]') - Hearth::Validator.validate_type!(stub_responses, TrueClass, FalseClass, context: 'config[:stub_responses]') - Hearth::Validator.validate_type!(validate_input, TrueClass, FalseClass, context: 'config[:validate_input]') + Hearth::Validator.validate_types!(disable_host_prefix, TrueClass, FalseClass, context: 'config[:disable_host_prefix]') + Hearth::Validator.validate_types!(endpoint, String, context: 'config[:endpoint]') + Hearth::Validator.validate_types!(http_client, Hearth::HTTP::Client, context: 'config[:http_client]') + Hearth::Validator.validate_types!(interceptors, Hearth::InterceptorList, context: 'config[:interceptors]') + Hearth::Validator.validate_types!(log_level, Symbol, context: 'config[:log_level]') + Hearth::Validator.validate_types!(logger, Logger, context: 'config[:logger]') + Hearth::Validator.validate_types!(plugins, Hearth::PluginList, context: 'config[:plugins]') + Hearth::Validator.validate_types!(retry_strategy, Hearth::Retry::Strategy, context: 'config[:retry_strategy]') + Hearth::Validator.validate_types!(stub_responses, TrueClass, FalseClass, context: 'config[:stub_responses]') + Hearth::Validator.validate_types!(validate_input, TrueClass, FalseClass, context: 'config[:validate_input]') end def self.defaults diff --git a/codegen/projections/white_label/lib/white_label/config.rb b/codegen/projections/white_label/lib/white_label/config.rb index 8dcc88c79..bba64ae88 100644 --- a/codegen/projections/white_label/lib/white_label/config.rb +++ b/codegen/projections/white_label/lib/white_label/config.rb @@ -113,20 +113,20 @@ module WhiteLabel private def validate! - Hearth::Validator.validate_type!(disable_host_prefix, TrueClass, FalseClass, context: 'config[:disable_host_prefix]') - Hearth::Validator.validate_type!(disable_request_compression, TrueClass, FalseClass, context: 'config[:disable_request_compression]') - Hearth::Validator.validate_type!(endpoint, String, context: 'config[:endpoint]') - Hearth::Validator.validate_type!(http_client, Hearth::HTTP::Client, context: 'config[:http_client]') - Hearth::Validator.validate_type!(interceptors, Hearth::InterceptorList, context: 'config[:interceptors]') - Hearth::Validator.validate_type!(log_level, Symbol, context: 'config[:log_level]') - Hearth::Validator.validate_type!(logger, Logger, context: 'config[:logger]') - Hearth::Validator.validate_type!(plugins, Hearth::PluginList, context: 'config[:plugins]') - Hearth::Validator.validate_type!(request_min_compression_size_bytes, Integer, context: 'config[:request_min_compression_size_bytes]') + Hearth::Validator.validate_types!(disable_host_prefix, TrueClass, FalseClass, context: 'config[:disable_host_prefix]') + Hearth::Validator.validate_types!(disable_request_compression, TrueClass, FalseClass, context: 'config[:disable_request_compression]') + Hearth::Validator.validate_types!(endpoint, String, context: 'config[:endpoint]') + Hearth::Validator.validate_types!(http_client, Hearth::HTTP::Client, context: 'config[:http_client]') + Hearth::Validator.validate_types!(interceptors, Hearth::InterceptorList, context: 'config[:interceptors]') + Hearth::Validator.validate_types!(log_level, Symbol, context: 'config[:log_level]') + Hearth::Validator.validate_types!(logger, Logger, context: 'config[:logger]') + Hearth::Validator.validate_types!(plugins, Hearth::PluginList, context: 'config[:plugins]') + Hearth::Validator.validate_types!(request_min_compression_size_bytes, Integer, context: 'config[:request_min_compression_size_bytes]') Hearth::Validator.validate_range!(request_min_compression_size_bytes, min: 0, max: 10485760, context: 'config[:request_min_compression_size_bytes]') - Hearth::Validator.validate_type!(retry_strategy, Hearth::Retry::Strategy, context: 'config[:retry_strategy]') - Hearth::Validator.validate_type!(stub_responses, TrueClass, FalseClass, context: 'config[:stub_responses]') - Hearth::Validator.validate_type!(test_config, String, context: 'config[:test_config]') - Hearth::Validator.validate_type!(validate_input, TrueClass, FalseClass, context: 'config[:validate_input]') + Hearth::Validator.validate_types!(retry_strategy, Hearth::Retry::Strategy, context: 'config[:retry_strategy]') + Hearth::Validator.validate_types!(stub_responses, TrueClass, FalseClass, context: 'config[:stub_responses]') + Hearth::Validator.validate_types!(test_config, String, context: 'config[:test_config]') + Hearth::Validator.validate_types!(validate_input, TrueClass, FalseClass, context: 'config[:validate_input]') end def self.defaults