-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump openapi-generator version (#54)
- Loading branch information
Showing
43 changed files
with
103 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
|
@@ -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] || {} | ||
|
@@ -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] || {} | ||
|
@@ -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] || {} | ||
|
@@ -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] || {} | ||
|
@@ -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] || {} | ||
|
@@ -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] || {} | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
|
@@ -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 | ||
|
@@ -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] || {} | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
|
@@ -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 | ||
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
|
Oops, something went wrong.