Skip to content

Commit

Permalink
Bump openapi-generator version (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
pcothenet authored Jan 7, 2022
1 parent a4cfb97 commit 49fd71c
Show file tree
Hide file tree
Showing 43 changed files with 103 additions and 78 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.16.1] - 2022-01-07

### Changed

- No feature changes. Updates the openapi-generator version.

## [1.16.0] - 2021-12-07

### Removed
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
patch_ruby (1.16.0)
patch_ruby (1.16.1)
typhoeus (~> 1.0, >= 1.0.1)

GEM
Expand Down
2 changes: 1 addition & 1 deletion lib/patch_ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The version of the OpenAPI document: v1
Contact: [email protected]
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 5.2.1
OpenAPI Generator version: 5.3.1
=end

Expand Down
36 changes: 27 additions & 9 deletions lib/patch_ruby/api/estimates_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The version of the OpenAPI document: v1
Contact: [email protected]
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 5.2.1
OpenAPI Generator version: 5.3.1
=end

Expand Down Expand Up @@ -65,7 +65,10 @@ def create_bitcoin_estimate_with_http_info(create_bitcoin_estimate_request, opts
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
content_type = @api_client.select_header_content_type(['application/json'])
if !content_type.nil?
header_params['Content-Type'] = content_type
end

# form parameters
form_params = opts[:form_params] || {}
Expand Down Expand Up @@ -131,7 +134,10 @@ def create_ethereum_estimate_with_http_info(create_ethereum_estimate_request, op
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
content_type = @api_client.select_header_content_type(['application/json'])
if !content_type.nil?
header_params['Content-Type'] = content_type
end

# form parameters
form_params = opts[:form_params] || {}
Expand Down Expand Up @@ -197,7 +203,10 @@ def create_flight_estimate_with_http_info(create_flight_estimate_request, opts =
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
content_type = @api_client.select_header_content_type(['application/json'])
if !content_type.nil?
header_params['Content-Type'] = content_type
end

# form parameters
form_params = opts[:form_params] || {}
Expand Down Expand Up @@ -263,7 +272,10 @@ def create_mass_estimate_with_http_info(create_mass_estimate_request, opts = {})
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
content_type = @api_client.select_header_content_type(['application/json'])
if !content_type.nil?
header_params['Content-Type'] = content_type
end

# form parameters
form_params = opts[:form_params] || {}
Expand Down Expand Up @@ -329,7 +341,10 @@ def create_shipping_estimate_with_http_info(create_shipping_estimate_request, op
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
content_type = @api_client.select_header_content_type(['application/json'])
if !content_type.nil?
header_params['Content-Type'] = content_type
end

# form parameters
form_params = opts[:form_params] || {}
Expand Down Expand Up @@ -395,7 +410,10 @@ def create_vehicle_estimate_with_http_info(create_vehicle_estimate_request, opts
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
content_type = @api_client.select_header_content_type(['application/json'])
if !content_type.nil?
header_params['Content-Type'] = content_type
end

# form parameters
form_params = opts[:form_params] || {}
Expand Down Expand Up @@ -432,7 +450,7 @@ def create_vehicle_estimate_with_http_info(create_vehicle_estimate_request, opts
# @param [Hash] opts the optional parameters
# @return [EstimateResponse]
def retrieve_estimate(id, opts = {})

data, _status_code, _headers = retrieve_estimate_with_http_info(id, opts)
data
end
Expand Down Expand Up @@ -496,7 +514,7 @@ def retrieve_estimate_with_http_info(id, opts = {})
# @option opts [Integer] :page
# @return [EstimateListResponse]
def retrieve_estimates(opts = {})

data, _status_code, _headers = retrieve_estimates_with_http_info(opts)
data
end
Expand Down
15 changes: 9 additions & 6 deletions lib/patch_ruby/api/orders_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The version of the OpenAPI document: v1
Contact: [email protected]
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 5.2.1
OpenAPI Generator version: 5.3.1
=end

Expand All @@ -33,7 +33,7 @@ def initialize(api_client = ApiClient.default)
# @param [Hash] opts the optional parameters
# @return [OrderResponse]
def cancel_order(id, opts = {})

data, _status_code, _headers = cancel_order_with_http_info(id, opts)
data
end
Expand Down Expand Up @@ -126,7 +126,10 @@ def create_order_with_http_info(create_order_request, opts = {})
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
content_type = @api_client.select_header_content_type(['application/json'])
if !content_type.nil?
header_params['Content-Type'] = content_type
end

# form parameters
form_params = opts[:form_params] || {}
Expand Down Expand Up @@ -163,7 +166,7 @@ def create_order_with_http_info(create_order_request, opts = {})
# @param [Hash] opts the optional parameters
# @return [OrderResponse]
def place_order(id, opts = {})

data, _status_code, _headers = place_order_with_http_info(id, opts)
data
end
Expand Down Expand Up @@ -227,7 +230,7 @@ def place_order_with_http_info(id, opts = {})
# @param [Hash] opts the optional parameters
# @return [OrderResponse]
def retrieve_order(id, opts = {})

data, _status_code, _headers = retrieve_order_with_http_info(id, opts)
data
end
Expand Down Expand Up @@ -294,7 +297,7 @@ def retrieve_order_with_http_info(id, opts = {})
# @option opts [String] :metadata_example2
# @return [OrderListResponse]
def retrieve_orders(opts = {})

data, _status_code, _headers = retrieve_orders_with_http_info(opts)
data
end
Expand Down
6 changes: 3 additions & 3 deletions lib/patch_ruby/api/projects_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The version of the OpenAPI document: v1
Contact: [email protected]
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 5.2.1
OpenAPI Generator version: 5.3.1
=end

Expand All @@ -30,7 +30,7 @@ def initialize(api_client = ApiClient.default)
# @param [Hash] opts the optional parameters
# @return [ProjectResponse]
def retrieve_project(id, opts = {})

data, _status_code, _headers = retrieve_project_with_http_info(id, opts)
data
end
Expand Down Expand Up @@ -97,7 +97,7 @@ def retrieve_project_with_http_info(id, opts = {})
# @option opts [Integer] :minimum_available_mass
# @return [ProjectListResponse]
def retrieve_projects(opts = {})

data, _status_code, _headers = retrieve_projects_with_http_info(opts)
data
end
Expand Down
4 changes: 2 additions & 2 deletions lib/patch_ruby/api/technology_types_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The version of the OpenAPI document: v1
Contact: [email protected]
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 5.2.1
OpenAPI Generator version: 5.3.1
=end

Expand All @@ -28,7 +28,7 @@ def initialize(api_client = ApiClient.default)
# @param [Hash] opts the optional parameters
# @return [TechnologyTypeListResponse]
def retrieve_technology_types(opts = {})

data, _status_code, _headers = retrieve_technology_types_with_http_info(opts)
data
end
Expand Down
10 changes: 5 additions & 5 deletions lib/patch_ruby/api_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The version of the OpenAPI document: v1
Contact: [email protected]
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 5.2.1
OpenAPI Generator version: 5.3.1
=end

Expand All @@ -31,7 +31,7 @@ class ApiClient
# @option config [Configuration] Configuration for initializing the object, default to Configuration.default
def initialize(config = Configuration.default)
@config = config
@user_agent = "patch-ruby/1.16.0"
@user_agent = "patch-ruby/1.16.1"
@default_headers = {
'Content-Type' => 'application/json',
'User-Agent' => @user_agent
Expand Down Expand Up @@ -296,7 +296,7 @@ def build_request_url(path, opts = {})
@config.base_url(opts[:operation]) + path
end

# Update hearder and query params based on authentication settings.
# Update header and query params based on authentication settings.
#
# @param [Hash] header_params Header parameters
# @param [Hash] query_params Query parameters
Expand Down Expand Up @@ -335,8 +335,8 @@ def select_header_accept(accepts)
# @param [Array] content_types array for Content-Type
# @return [String] the Content-Type header (e.g. application/json)
def select_header_content_type(content_types)
# use application/json by default
return 'application/json' if content_types.nil? || content_types.empty?
# return nil by default
return if content_types.nil? || content_types.empty?
# use JSON when present, otherwise use the first one
json_content_type = content_types.find { |s| json_mime?(s) }
json_content_type || content_types.first
Expand Down
2 changes: 1 addition & 1 deletion lib/patch_ruby/api_error.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The version of the OpenAPI document: v1
Contact: [email protected]
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 5.2.1
OpenAPI Generator version: 5.3.1
=end

Expand Down
4 changes: 2 additions & 2 deletions lib/patch_ruby/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The version of the OpenAPI document: v1
Contact: [email protected]
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 5.2.1
OpenAPI Generator version: 5.3.1
=end

Expand Down Expand Up @@ -147,13 +147,13 @@ def initialize
@server_operation_variables = {}
@api_key = {}
@api_key_prefix = {}
@timeout = 0
@client_side_validation = true
@verify_ssl = true
@verify_ssl_host = true
@params_encoding = nil
@cert_file = nil
@key_file = nil
@timeout = 0
@debugging = false
@inject_format = false
@force_ending_format = false
Expand Down
2 changes: 1 addition & 1 deletion lib/patch_ruby/models/allocation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The version of the OpenAPI document: v1
Contact: [email protected]
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 5.2.1
OpenAPI Generator version: 5.3.1
=end

Expand Down
2 changes: 1 addition & 1 deletion lib/patch_ruby/models/create_bitcoin_estimate_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The version of the OpenAPI document: v1
Contact: [email protected]
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 5.2.1
OpenAPI Generator version: 5.3.1
=end

Expand Down
2 changes: 1 addition & 1 deletion lib/patch_ruby/models/create_ethereum_estimate_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The version of the OpenAPI document: v1
Contact: [email protected]
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 5.2.1
OpenAPI Generator version: 5.3.1
=end

Expand Down
2 changes: 1 addition & 1 deletion lib/patch_ruby/models/create_flight_estimate_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The version of the OpenAPI document: v1
Contact: [email protected]
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 5.2.1
OpenAPI Generator version: 5.3.1
=end

Expand Down
2 changes: 1 addition & 1 deletion lib/patch_ruby/models/create_mass_estimate_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The version of the OpenAPI document: v1
Contact: [email protected]
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 5.2.1
OpenAPI Generator version: 5.3.1
=end

Expand Down
2 changes: 1 addition & 1 deletion lib/patch_ruby/models/create_order_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The version of the OpenAPI document: v1
Contact: [email protected]
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 5.2.1
OpenAPI Generator version: 5.3.1
=end

Expand Down
2 changes: 1 addition & 1 deletion lib/patch_ruby/models/create_shipping_estimate_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The version of the OpenAPI document: v1
Contact: [email protected]
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 5.2.1
OpenAPI Generator version: 5.3.1
=end

Expand Down
Loading

0 comments on commit 49fd71c

Please sign in to comment.