Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ module {{moduleName}}
attr_accessor :temp_folder_path

# The time limit for HTTP request in seconds.
# Default to 0 (never times out).
# Default to 60 seconds.
attr_accessor :timeout

# Set this to false to skip client side validation in the operation.
Expand Down Expand Up @@ -148,7 +148,7 @@ module {{moduleName}}
@verify_ssl_host = true
@cert_file = nil
@key_file = nil
@timeout = 0
@timeout = 60
@params_encoding = nil
{{/isTyphoeus}}
{{#isHttpx}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class Configuration
attr_accessor :temp_folder_path

# The time limit for HTTP request in seconds.
# Default to 0 (never times out).
# Default to 60 seconds.
attr_accessor :timeout

# Set this to false to skip client side validation in the operation.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class Configuration
attr_accessor :temp_folder_path

# The time limit for HTTP request in seconds.
# Default to 0 (never times out).
# Default to 60 seconds.
attr_accessor :timeout

# Set this to false to skip client side validation in the operation.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class Configuration
attr_accessor :temp_folder_path

# The time limit for HTTP request in seconds.
# Default to 0 (never times out).
# Default to 60 seconds.
attr_accessor :timeout

# Set this to false to skip client side validation in the operation.
Expand Down Expand Up @@ -171,7 +171,7 @@ def initialize
@verify_ssl_host = true
@cert_file = nil
@key_file = nil
@timeout = 0
@timeout = 60
@params_encoding = nil
@debugging = false
@ignore_operation_servers = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class Configuration
attr_accessor :temp_folder_path

# The time limit for HTTP request in seconds.
# Default to 0 (never times out).
# Default to 60 seconds.
attr_accessor :timeout

# Set this to false to skip client side validation in the operation.
Expand Down Expand Up @@ -171,7 +171,7 @@ def initialize
@verify_ssl_host = true
@cert_file = nil
@key_file = nil
@timeout = 0
@timeout = 60
@params_encoding = nil
@debugging = false
@ignore_operation_servers = false
Expand Down
8 changes: 4 additions & 4 deletions samples/client/petstore/ruby-autoload/spec/api_client_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@
let(:config) { Petstore::Configuration.new }
let(:api_client) { Petstore::ApiClient.new(config) }

it 'defaults to 0' do
expect(Petstore::Configuration.default.timeout).to eq(0)
expect(config.timeout).to eq(0)
it 'defaults to 60' do
expect(Petstore::Configuration.default.timeout).to eq(60)
expect(config.timeout).to eq(60)

request = api_client.build_request(:get, '/test')
expect(request.options[:timeout]).to eq(0)
expect(request.options[:timeout]).to eq(60)
end

it 'can be customized' do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class Configuration
attr_accessor :temp_folder_path

# The time limit for HTTP request in seconds.
# Default to 0 (never times out).
# Default to 60 seconds.
attr_accessor :timeout

# Set this to false to skip client side validation in the operation.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class Configuration
attr_accessor :temp_folder_path

# The time limit for HTTP request in seconds.
# Default to 0 (never times out).
# Default to 60 seconds.
attr_accessor :timeout

# Set this to false to skip client side validation in the operation.
Expand Down
4 changes: 2 additions & 2 deletions samples/client/petstore/ruby/lib/petstore/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class Configuration
attr_accessor :temp_folder_path

# The time limit for HTTP request in seconds.
# Default to 0 (never times out).
# Default to 60 seconds.
attr_accessor :timeout

# Set this to false to skip client side validation in the operation.
Expand Down Expand Up @@ -171,7 +171,7 @@ def initialize
@verify_ssl_host = true
@cert_file = nil
@key_file = nil
@timeout = 0
@timeout = 60
@params_encoding = nil
@debugging = false
@ignore_operation_servers = false
Expand Down
8 changes: 4 additions & 4 deletions samples/client/petstore/ruby/spec/api_client_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@
let(:config) { Petstore::Configuration.new }
let(:api_client) { Petstore::ApiClient.new(config) }

it 'defaults to 0' do
expect(Petstore::Configuration.default.timeout).to eq(0)
expect(config.timeout).to eq(0)
it 'defaults to 60' do
expect(Petstore::Configuration.default.timeout).to eq(60)
expect(config.timeout).to eq(60)

request = api_client.build_request(:get, '/test')
expect(request.options[:timeout]).to eq(0)
expect(request.options[:timeout]).to eq(60)
end

it 'can be customized' do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class Configuration
attr_accessor :temp_folder_path

# The time limit for HTTP request in seconds.
# Default to 0 (never times out).
# Default to 60 seconds.
attr_accessor :timeout

# Set this to false to skip client side validation in the operation.
Expand Down Expand Up @@ -171,7 +171,7 @@ def initialize
@verify_ssl_host = true
@cert_file = nil
@key_file = nil
@timeout = 0
@timeout = 60
@params_encoding = nil
@debugging = false
@ignore_operation_servers = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@
let(:config) { XAuthIDAlias::Configuration.new }
let(:api_client) { XAuthIDAlias::ApiClient.new(config) }

it 'defaults to 0' do
expect(XAuthIDAlias::Configuration.default.timeout).to eq(0)
expect(config.timeout).to eq(0)
it 'defaults to 60' do
expect(XAuthIDAlias::Configuration.default.timeout).to eq(60)
expect(config.timeout).to eq(60)

request = api_client.build_request(:get, '/test')
expect(request.options[:timeout]).to eq(0)
expect(request.options[:timeout]).to eq(60)
end

it 'can be customized' do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class Configuration
attr_accessor :temp_folder_path

# The time limit for HTTP request in seconds.
# Default to 0 (never times out).
# Default to 60 seconds.
attr_accessor :timeout

# Set this to false to skip client side validation in the operation.
Expand Down Expand Up @@ -171,7 +171,7 @@ def initialize
@verify_ssl_host = true
@cert_file = nil
@key_file = nil
@timeout = 0
@timeout = 60
@params_encoding = nil
@debugging = false
@ignore_operation_servers = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@
let(:config) { DynamicServers::Configuration.new }
let(:api_client) { DynamicServers::ApiClient.new(config) }

it 'defaults to 0' do
expect(DynamicServers::Configuration.default.timeout).to eq(0)
expect(config.timeout).to eq(0)
it 'defaults to 60' do
expect(DynamicServers::Configuration.default.timeout).to eq(60)
expect(config.timeout).to eq(60)

request = api_client.build_request(:get, '/test')
expect(request.options[:timeout]).to eq(0)
expect(request.options[:timeout]).to eq(60)
end

it 'can be customized' do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class Configuration
attr_accessor :temp_folder_path

# The time limit for HTTP request in seconds.
# Default to 0 (never times out).
# Default to 60 seconds.
attr_accessor :timeout

# Set this to false to skip client side validation in the operation.
Expand Down Expand Up @@ -171,7 +171,7 @@ def initialize
@verify_ssl_host = true
@cert_file = nil
@key_file = nil
@timeout = 0
@timeout = 60
@params_encoding = nil
@debugging = false
@ignore_operation_servers = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@
let(:config) { Petstore::Configuration.new }
let(:api_client) { Petstore::ApiClient.new(config) }

it 'defaults to 0' do
expect(Petstore::Configuration.default.timeout).to eq(0)
expect(config.timeout).to eq(0)
it 'defaults to 60' do
expect(Petstore::Configuration.default.timeout).to eq(60)
expect(config.timeout).to eq(60)

request = api_client.build_request(:get, '/test')
expect(request.options[:timeout]).to eq(0)
expect(request.options[:timeout]).to eq(60)
end

it 'can be customized' do
Expand Down
Loading