Skip to content

Commit f8d4cff

Browse files
Remove redundant params_encoder config
1 parent dfa16a6 commit f8d4cff

2 files changed

Lines changed: 2 additions & 8 deletions

File tree

modules/openapi-generator/src/main/resources/ruby-client/api_client_faraday_partial.mustache

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@
1010
:client_cert => @config.ssl_client_cert,
1111
:client_key => @config.ssl_client_key
1212
}
13-
request_options = {
14-
:params_encoder => @config.params_encoder
15-
}
16-
connection = Faraday.new(:url => config.base_url, :ssl => ssl_options, :request => request_options) do |conn|
13+
connection = Faraday.new(:url => config.base_url, :ssl => ssl_options) do |conn|
1714
if config.username && config.password
1815
if Gem::Version.new(Faraday::VERSION) >= Gem::Version.new('2.0')
1916
conn.request(:authorization, :basic, config.username, config.password)

samples/client/petstore/ruby-faraday/lib/petstore/api_client.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,7 @@ def call_api(http_method, path, opts = {})
5555
:client_cert => @config.ssl_client_cert,
5656
:client_key => @config.ssl_client_key
5757
}
58-
request_options = {
59-
:params_encoder => @config.params_encoder
60-
}
61-
connection = Faraday.new(:url => config.base_url, :ssl => ssl_options, :request => request_options) do |conn|
58+
connection = Faraday.new(:url => config.base_url, :ssl => ssl_options) do |conn|
6259
if config.username && config.password
6360
if Gem::Version.new(Faraday::VERSION) >= Gem::Version.new('2.0')
6461
conn.request(:authorization, :basic, config.username, config.password)

0 commit comments

Comments
 (0)