Skip to content

Commit 49fd71c

Browse files
authored
Bump openapi-generator version (#54)
1 parent a4cfb97 commit 49fd71c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+103
-78
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.16.1] - 2022-01-07
9+
10+
### Changed
11+
12+
- No feature changes. Updates the openapi-generator version.
13+
814
## [1.16.0] - 2021-12-07
915

1016
### Removed

Gemfile.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
patch_ruby (1.16.0)
4+
patch_ruby (1.16.1)
55
typhoeus (~> 1.0, >= 1.0.1)
66

77
GEM

lib/patch_ruby.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
The version of the OpenAPI document: v1
77
88
Generated by: https://openapi-generator.tech
9-
OpenAPI Generator version: 5.2.1
9+
OpenAPI Generator version: 5.3.1
1010
1111
=end
1212

lib/patch_ruby/api/estimates_api.rb

+27-9
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
The version of the OpenAPI document: v1
77
88
Generated by: https://openapi-generator.tech
9-
OpenAPI Generator version: 5.2.1
9+
OpenAPI Generator version: 5.3.1
1010
1111
=end
1212

@@ -65,7 +65,10 @@ def create_bitcoin_estimate_with_http_info(create_bitcoin_estimate_request, opts
6565
# HTTP header 'Accept' (if needed)
6666
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
6767
# HTTP header 'Content-Type'
68-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
68+
content_type = @api_client.select_header_content_type(['application/json'])
69+
if !content_type.nil?
70+
header_params['Content-Type'] = content_type
71+
end
6972

7073
# form parameters
7174
form_params = opts[:form_params] || {}
@@ -131,7 +134,10 @@ def create_ethereum_estimate_with_http_info(create_ethereum_estimate_request, op
131134
# HTTP header 'Accept' (if needed)
132135
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
133136
# HTTP header 'Content-Type'
134-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
137+
content_type = @api_client.select_header_content_type(['application/json'])
138+
if !content_type.nil?
139+
header_params['Content-Type'] = content_type
140+
end
135141

136142
# form parameters
137143
form_params = opts[:form_params] || {}
@@ -197,7 +203,10 @@ def create_flight_estimate_with_http_info(create_flight_estimate_request, opts =
197203
# HTTP header 'Accept' (if needed)
198204
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
199205
# HTTP header 'Content-Type'
200-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
206+
content_type = @api_client.select_header_content_type(['application/json'])
207+
if !content_type.nil?
208+
header_params['Content-Type'] = content_type
209+
end
201210

202211
# form parameters
203212
form_params = opts[:form_params] || {}
@@ -263,7 +272,10 @@ def create_mass_estimate_with_http_info(create_mass_estimate_request, opts = {})
263272
# HTTP header 'Accept' (if needed)
264273
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
265274
# HTTP header 'Content-Type'
266-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
275+
content_type = @api_client.select_header_content_type(['application/json'])
276+
if !content_type.nil?
277+
header_params['Content-Type'] = content_type
278+
end
267279

268280
# form parameters
269281
form_params = opts[:form_params] || {}
@@ -329,7 +341,10 @@ def create_shipping_estimate_with_http_info(create_shipping_estimate_request, op
329341
# HTTP header 'Accept' (if needed)
330342
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
331343
# HTTP header 'Content-Type'
332-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
344+
content_type = @api_client.select_header_content_type(['application/json'])
345+
if !content_type.nil?
346+
header_params['Content-Type'] = content_type
347+
end
333348

334349
# form parameters
335350
form_params = opts[:form_params] || {}
@@ -395,7 +410,10 @@ def create_vehicle_estimate_with_http_info(create_vehicle_estimate_request, opts
395410
# HTTP header 'Accept' (if needed)
396411
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
397412
# HTTP header 'Content-Type'
398-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
413+
content_type = @api_client.select_header_content_type(['application/json'])
414+
if !content_type.nil?
415+
header_params['Content-Type'] = content_type
416+
end
399417

400418
# form parameters
401419
form_params = opts[:form_params] || {}
@@ -432,7 +450,7 @@ def create_vehicle_estimate_with_http_info(create_vehicle_estimate_request, opts
432450
# @param [Hash] opts the optional parameters
433451
# @return [EstimateResponse]
434452
def retrieve_estimate(id, opts = {})
435-
453+
436454
data, _status_code, _headers = retrieve_estimate_with_http_info(id, opts)
437455
data
438456
end
@@ -496,7 +514,7 @@ def retrieve_estimate_with_http_info(id, opts = {})
496514
# @option opts [Integer] :page
497515
# @return [EstimateListResponse]
498516
def retrieve_estimates(opts = {})
499-
517+
500518
data, _status_code, _headers = retrieve_estimates_with_http_info(opts)
501519
data
502520
end

lib/patch_ruby/api/orders_api.rb

+9-6
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
The version of the OpenAPI document: v1
77
88
Generated by: https://openapi-generator.tech
9-
OpenAPI Generator version: 5.2.1
9+
OpenAPI Generator version: 5.3.1
1010
1111
=end
1212

@@ -33,7 +33,7 @@ def initialize(api_client = ApiClient.default)
3333
# @param [Hash] opts the optional parameters
3434
# @return [OrderResponse]
3535
def cancel_order(id, opts = {})
36-
36+
3737
data, _status_code, _headers = cancel_order_with_http_info(id, opts)
3838
data
3939
end
@@ -126,7 +126,10 @@ def create_order_with_http_info(create_order_request, opts = {})
126126
# HTTP header 'Accept' (if needed)
127127
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
128128
# HTTP header 'Content-Type'
129-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
129+
content_type = @api_client.select_header_content_type(['application/json'])
130+
if !content_type.nil?
131+
header_params['Content-Type'] = content_type
132+
end
130133

131134
# form parameters
132135
form_params = opts[:form_params] || {}
@@ -163,7 +166,7 @@ def create_order_with_http_info(create_order_request, opts = {})
163166
# @param [Hash] opts the optional parameters
164167
# @return [OrderResponse]
165168
def place_order(id, opts = {})
166-
169+
167170
data, _status_code, _headers = place_order_with_http_info(id, opts)
168171
data
169172
end
@@ -227,7 +230,7 @@ def place_order_with_http_info(id, opts = {})
227230
# @param [Hash] opts the optional parameters
228231
# @return [OrderResponse]
229232
def retrieve_order(id, opts = {})
230-
233+
231234
data, _status_code, _headers = retrieve_order_with_http_info(id, opts)
232235
data
233236
end
@@ -294,7 +297,7 @@ def retrieve_order_with_http_info(id, opts = {})
294297
# @option opts [String] :metadata_example2
295298
# @return [OrderListResponse]
296299
def retrieve_orders(opts = {})
297-
300+
298301
data, _status_code, _headers = retrieve_orders_with_http_info(opts)
299302
data
300303
end

lib/patch_ruby/api/projects_api.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
The version of the OpenAPI document: v1
77
88
Generated by: https://openapi-generator.tech
9-
OpenAPI Generator version: 5.2.1
9+
OpenAPI Generator version: 5.3.1
1010
1111
=end
1212

@@ -30,7 +30,7 @@ def initialize(api_client = ApiClient.default)
3030
# @param [Hash] opts the optional parameters
3131
# @return [ProjectResponse]
3232
def retrieve_project(id, opts = {})
33-
33+
3434
data, _status_code, _headers = retrieve_project_with_http_info(id, opts)
3535
data
3636
end
@@ -97,7 +97,7 @@ def retrieve_project_with_http_info(id, opts = {})
9797
# @option opts [Integer] :minimum_available_mass
9898
# @return [ProjectListResponse]
9999
def retrieve_projects(opts = {})
100-
100+
101101
data, _status_code, _headers = retrieve_projects_with_http_info(opts)
102102
data
103103
end

lib/patch_ruby/api/technology_types_api.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
The version of the OpenAPI document: v1
77
88
Generated by: https://openapi-generator.tech
9-
OpenAPI Generator version: 5.2.1
9+
OpenAPI Generator version: 5.3.1
1010
1111
=end
1212

@@ -28,7 +28,7 @@ def initialize(api_client = ApiClient.default)
2828
# @param [Hash] opts the optional parameters
2929
# @return [TechnologyTypeListResponse]
3030
def retrieve_technology_types(opts = {})
31-
31+
3232
data, _status_code, _headers = retrieve_technology_types_with_http_info(opts)
3333
data
3434
end

lib/patch_ruby/api_client.rb

+5-5
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
The version of the OpenAPI document: v1
77
88
Generated by: https://openapi-generator.tech
9-
OpenAPI Generator version: 5.2.1
9+
OpenAPI Generator version: 5.3.1
1010
1111
=end
1212

@@ -31,7 +31,7 @@ class ApiClient
3131
# @option config [Configuration] Configuration for initializing the object, default to Configuration.default
3232
def initialize(config = Configuration.default)
3333
@config = config
34-
@user_agent = "patch-ruby/1.16.0"
34+
@user_agent = "patch-ruby/1.16.1"
3535
@default_headers = {
3636
'Content-Type' => 'application/json',
3737
'User-Agent' => @user_agent
@@ -296,7 +296,7 @@ def build_request_url(path, opts = {})
296296
@config.base_url(opts[:operation]) + path
297297
end
298298

299-
# Update hearder and query params based on authentication settings.
299+
# Update header and query params based on authentication settings.
300300
#
301301
# @param [Hash] header_params Header parameters
302302
# @param [Hash] query_params Query parameters
@@ -335,8 +335,8 @@ def select_header_accept(accepts)
335335
# @param [Array] content_types array for Content-Type
336336
# @return [String] the Content-Type header (e.g. application/json)
337337
def select_header_content_type(content_types)
338-
# use application/json by default
339-
return 'application/json' if content_types.nil? || content_types.empty?
338+
# return nil by default
339+
return if content_types.nil? || content_types.empty?
340340
# use JSON when present, otherwise use the first one
341341
json_content_type = content_types.find { |s| json_mime?(s) }
342342
json_content_type || content_types.first

lib/patch_ruby/api_error.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
The version of the OpenAPI document: v1
77
88
Generated by: https://openapi-generator.tech
9-
OpenAPI Generator version: 5.2.1
9+
OpenAPI Generator version: 5.3.1
1010
1111
=end
1212

lib/patch_ruby/configuration.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
The version of the OpenAPI document: v1
77
88
Generated by: https://openapi-generator.tech
9-
OpenAPI Generator version: 5.2.1
9+
OpenAPI Generator version: 5.3.1
1010
1111
=end
1212

@@ -147,13 +147,13 @@ def initialize
147147
@server_operation_variables = {}
148148
@api_key = {}
149149
@api_key_prefix = {}
150-
@timeout = 0
151150
@client_side_validation = true
152151
@verify_ssl = true
153152
@verify_ssl_host = true
154153
@params_encoding = nil
155154
@cert_file = nil
156155
@key_file = nil
156+
@timeout = 0
157157
@debugging = false
158158
@inject_format = false
159159
@force_ending_format = false

lib/patch_ruby/models/allocation.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
The version of the OpenAPI document: v1
77
88
Generated by: https://openapi-generator.tech
9-
OpenAPI Generator version: 5.2.1
9+
OpenAPI Generator version: 5.3.1
1010
1111
=end
1212

lib/patch_ruby/models/create_bitcoin_estimate_request.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
The version of the OpenAPI document: v1
77
88
Generated by: https://openapi-generator.tech
9-
OpenAPI Generator version: 5.2.1
9+
OpenAPI Generator version: 5.3.1
1010
1111
=end
1212

lib/patch_ruby/models/create_ethereum_estimate_request.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
The version of the OpenAPI document: v1
77
88
Generated by: https://openapi-generator.tech
9-
OpenAPI Generator version: 5.2.1
9+
OpenAPI Generator version: 5.3.1
1010
1111
=end
1212

lib/patch_ruby/models/create_flight_estimate_request.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
The version of the OpenAPI document: v1
77
88
Generated by: https://openapi-generator.tech
9-
OpenAPI Generator version: 5.2.1
9+
OpenAPI Generator version: 5.3.1
1010
1111
=end
1212

lib/patch_ruby/models/create_mass_estimate_request.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
The version of the OpenAPI document: v1
77
88
Generated by: https://openapi-generator.tech
9-
OpenAPI Generator version: 5.2.1
9+
OpenAPI Generator version: 5.3.1
1010
1111
=end
1212

lib/patch_ruby/models/create_order_request.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
The version of the OpenAPI document: v1
77
88
Generated by: https://openapi-generator.tech
9-
OpenAPI Generator version: 5.2.1
9+
OpenAPI Generator version: 5.3.1
1010
1111
=end
1212

lib/patch_ruby/models/create_shipping_estimate_request.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
The version of the OpenAPI document: v1
77
88
Generated by: https://openapi-generator.tech
9-
OpenAPI Generator version: 5.2.1
9+
OpenAPI Generator version: 5.3.1
1010
1111
=end
1212

0 commit comments

Comments
 (0)