rename debugging variables (#7422)

This commit is contained in:
William Cheng
2020-09-15 21:25:52 +08:00
committed by GitHub
parent c44865279a
commit c04d9cd59a
15 changed files with 237 additions and 237 deletions

View File

@@ -59,13 +59,13 @@ module Petstore
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:body] || @api_client.object_to_http_body(client)
post_body = opts[:debug_body] || @api_client.object_to_http_body(client)
# return_type
return_type = opts[:return_type] || 'Client'
return_type = opts[:debug_return_type] || 'Client'
# auth_names
auth_names = opts[:auth_names] || []
auth_names = opts[:debug_auth_names] || []
new_options = opts.merge(
:header_params => header_params,

View File

@@ -47,13 +47,13 @@ module Petstore
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:body]
post_body = opts[:debug_body]
# return_type
return_type = opts[:return_type] || 'InlineResponseDefault'
return_type = opts[:debug_return_type] || 'InlineResponseDefault'
# auth_names
auth_names = opts[:auth_names] || []
auth_names = opts[:debug_auth_names] || []
new_options = opts.merge(
:header_params => header_params,

View File

@@ -49,13 +49,13 @@ module Petstore
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:body]
post_body = opts[:debug_body]
# return_type
return_type = opts[:return_type] || 'HealthCheckResult'
return_type = opts[:debug_return_type] || 'HealthCheckResult'
# auth_names
auth_names = opts[:auth_names] || []
auth_names = opts[:debug_auth_names] || []
new_options = opts.merge(
:header_params => header_params,
@@ -115,13 +115,13 @@ module Petstore
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:body] || @api_client.object_to_http_body(pet)
post_body = opts[:debug_body] || @api_client.object_to_http_body(pet)
# return_type
return_type = opts[:return_type]
return_type = opts[:debug_return_type]
# auth_names
auth_names = opts[:auth_names] || ['http_signature_test']
auth_names = opts[:debug_auth_names] || ['http_signature_test']
new_options = opts.merge(
:header_params => header_params,
@@ -173,13 +173,13 @@ module Petstore
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:body] || @api_client.object_to_http_body(opts[:'body'])
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
# return_type
return_type = opts[:return_type] || 'Boolean'
return_type = opts[:debug_return_type] || 'Boolean'
# auth_names
auth_names = opts[:auth_names] || []
auth_names = opts[:debug_auth_names] || []
new_options = opts.merge(
:header_params => header_params,
@@ -231,13 +231,13 @@ module Petstore
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:body] || @api_client.object_to_http_body(opts[:'outer_composite'])
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'outer_composite'])
# return_type
return_type = opts[:return_type] || 'OuterComposite'
return_type = opts[:debug_return_type] || 'OuterComposite'
# auth_names
auth_names = opts[:auth_names] || []
auth_names = opts[:debug_auth_names] || []
new_options = opts.merge(
:header_params => header_params,
@@ -289,13 +289,13 @@ module Petstore
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:body] || @api_client.object_to_http_body(opts[:'body'])
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
# return_type
return_type = opts[:return_type] || 'Float'
return_type = opts[:debug_return_type] || 'Float'
# auth_names
auth_names = opts[:auth_names] || []
auth_names = opts[:debug_auth_names] || []
new_options = opts.merge(
:header_params => header_params,
@@ -347,13 +347,13 @@ module Petstore
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:body] || @api_client.object_to_http_body(opts[:'body'])
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
# return_type
return_type = opts[:return_type] || 'String'
return_type = opts[:debug_return_type] || 'String'
# auth_names
auth_names = opts[:auth_names] || []
auth_names = opts[:debug_auth_names] || []
new_options = opts.merge(
:header_params => header_params,
@@ -407,13 +407,13 @@ module Petstore
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:body] || @api_client.object_to_http_body(file_schema_test_class)
post_body = opts[:debug_body] || @api_client.object_to_http_body(file_schema_test_class)
# return_type
return_type = opts[:return_type]
return_type = opts[:debug_return_type]
# auth_names
auth_names = opts[:auth_names] || []
auth_names = opts[:debug_auth_names] || []
new_options = opts.merge(
:header_params => header_params,
@@ -472,13 +472,13 @@ module Petstore
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:body] || @api_client.object_to_http_body(user)
post_body = opts[:debug_body] || @api_client.object_to_http_body(user)
# return_type
return_type = opts[:return_type]
return_type = opts[:debug_return_type]
# auth_names
auth_names = opts[:auth_names] || []
auth_names = opts[:debug_auth_names] || []
new_options = opts.merge(
:header_params => header_params,
@@ -536,13 +536,13 @@ module Petstore
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:body] || @api_client.object_to_http_body(client)
post_body = opts[:debug_body] || @api_client.object_to_http_body(client)
# return_type
return_type = opts[:return_type] || 'Client'
return_type = opts[:debug_return_type] || 'Client'
# auth_names
auth_names = opts[:auth_names] || []
auth_names = opts[:debug_auth_names] || []
new_options = opts.merge(
:header_params => header_params,
@@ -704,13 +704,13 @@ module Petstore
form_params['callback'] = opts[:'callback'] if !opts[:'callback'].nil?
# http body (model)
post_body = opts[:body]
post_body = opts[:debug_body]
# return_type
return_type = opts[:return_type]
return_type = opts[:debug_return_type]
# auth_names
auth_names = opts[:auth_names] || ['http_basic_test']
auth_names = opts[:debug_auth_names] || ['http_basic_test']
new_options = opts.merge(
:header_params => header_params,
@@ -816,13 +816,13 @@ module Petstore
form_params['enum_form_string'] = opts[:'enum_form_string'] if !opts[:'enum_form_string'].nil?
# http body (model)
post_body = opts[:body]
post_body = opts[:debug_body]
# return_type
return_type = opts[:return_type]
return_type = opts[:debug_return_type]
# auth_names
auth_names = opts[:auth_names] || []
auth_names = opts[:debug_auth_names] || []
new_options = opts.merge(
:header_params => header_params,
@@ -900,13 +900,13 @@ module Petstore
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:body]
post_body = opts[:debug_body]
# return_type
return_type = opts[:return_type]
return_type = opts[:debug_return_type]
# auth_names
auth_names = opts[:auth_names] || ['bearer_test']
auth_names = opts[:debug_auth_names] || ['bearer_test']
new_options = opts.merge(
:header_params => header_params,
@@ -960,13 +960,13 @@ module Petstore
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:body] || @api_client.object_to_http_body(request_body)
post_body = opts[:debug_body] || @api_client.object_to_http_body(request_body)
# return_type
return_type = opts[:return_type]
return_type = opts[:debug_return_type]
# auth_names
auth_names = opts[:auth_names] || []
auth_names = opts[:debug_auth_names] || []
new_options = opts.merge(
:header_params => header_params,
@@ -1028,13 +1028,13 @@ module Petstore
form_params['param2'] = param2
# http body (model)
post_body = opts[:body]
post_body = opts[:debug_body]
# return_type
return_type = opts[:return_type]
return_type = opts[:debug_return_type]
# auth_names
auth_names = opts[:auth_names] || []
auth_names = opts[:debug_auth_names] || []
new_options = opts.merge(
:header_params => header_params,
@@ -1115,13 +1115,13 @@ module Petstore
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:body]
post_body = opts[:debug_body]
# return_type
return_type = opts[:return_type]
return_type = opts[:debug_return_type]
# auth_names
auth_names = opts[:auth_names] || []
auth_names = opts[:debug_auth_names] || []
new_options = opts.merge(
:header_params => header_params,

View File

@@ -59,13 +59,13 @@ module Petstore
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:body] || @api_client.object_to_http_body(client)
post_body = opts[:debug_body] || @api_client.object_to_http_body(client)
# return_type
return_type = opts[:return_type] || 'Client'
return_type = opts[:debug_return_type] || 'Client'
# auth_names
auth_names = opts[:auth_names] || ['api_key_query']
auth_names = opts[:debug_auth_names] || ['api_key_query']
new_options = opts.merge(
:header_params => header_params,

View File

@@ -55,13 +55,13 @@ module Petstore
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:body] || @api_client.object_to_http_body(pet)
post_body = opts[:debug_body] || @api_client.object_to_http_body(pet)
# return_type
return_type = opts[:return_type]
return_type = opts[:debug_return_type]
# auth_names
auth_names = opts[:auth_names] || ['petstore_auth']
auth_names = opts[:debug_auth_names] || ['petstore_auth']
new_options = opts.merge(
:header_params => header_params,
@@ -116,13 +116,13 @@ module Petstore
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:body]
post_body = opts[:debug_body]
# return_type
return_type = opts[:return_type]
return_type = opts[:debug_return_type]
# auth_names
auth_names = opts[:auth_names] || ['petstore_auth']
auth_names = opts[:debug_auth_names] || ['petstore_auth']
new_options = opts.merge(
:header_params => header_params,
@@ -179,13 +179,13 @@ module Petstore
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:body]
post_body = opts[:debug_body]
# return_type
return_type = opts[:return_type] || 'Array<Pet>'
return_type = opts[:debug_return_type] || 'Array<Pet>'
# auth_names
auth_names = opts[:auth_names] || ['petstore_auth']
auth_names = opts[:debug_auth_names] || ['petstore_auth']
new_options = opts.merge(
:header_params => header_params,
@@ -242,13 +242,13 @@ module Petstore
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:body]
post_body = opts[:debug_body]
# return_type
return_type = opts[:return_type] || 'Array<Pet>'
return_type = opts[:debug_return_type] || 'Array<Pet>'
# auth_names
auth_names = opts[:auth_names] || ['petstore_auth']
auth_names = opts[:debug_auth_names] || ['petstore_auth']
new_options = opts.merge(
:header_params => header_params,
@@ -304,13 +304,13 @@ module Petstore
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:body]
post_body = opts[:debug_body]
# return_type
return_type = opts[:return_type] || 'Pet'
return_type = opts[:debug_return_type] || 'Pet'
# auth_names
auth_names = opts[:auth_names] || ['api_key']
auth_names = opts[:debug_auth_names] || ['api_key']
new_options = opts.merge(
:header_params => header_params,
@@ -364,13 +364,13 @@ module Petstore
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:body] || @api_client.object_to_http_body(pet)
post_body = opts[:debug_body] || @api_client.object_to_http_body(pet)
# return_type
return_type = opts[:return_type]
return_type = opts[:debug_return_type]
# auth_names
auth_names = opts[:auth_names] || ['petstore_auth']
auth_names = opts[:debug_auth_names] || ['petstore_auth']
new_options = opts.merge(
:header_params => header_params,
@@ -430,13 +430,13 @@ module Petstore
form_params['status'] = opts[:'status'] if !opts[:'status'].nil?
# http body (model)
post_body = opts[:body]
post_body = opts[:debug_body]
# return_type
return_type = opts[:return_type]
return_type = opts[:debug_return_type]
# auth_names
auth_names = opts[:auth_names] || ['petstore_auth']
auth_names = opts[:debug_auth_names] || ['petstore_auth']
new_options = opts.merge(
:header_params => header_params,
@@ -498,13 +498,13 @@ module Petstore
form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
# http body (model)
post_body = opts[:body]
post_body = opts[:debug_body]
# return_type
return_type = opts[:return_type] || 'ApiResponse'
return_type = opts[:debug_return_type] || 'ApiResponse'
# auth_names
auth_names = opts[:auth_names] || ['petstore_auth']
auth_names = opts[:debug_auth_names] || ['petstore_auth']
new_options = opts.merge(
:header_params => header_params,
@@ -570,13 +570,13 @@ module Petstore
form_params['additionalMetadata'] = opts[:'additional_metadata'] if !opts[:'additional_metadata'].nil?
# http body (model)
post_body = opts[:body]
post_body = opts[:debug_body]
# return_type
return_type = opts[:return_type] || 'ApiResponse'
return_type = opts[:debug_return_type] || 'ApiResponse'
# auth_names
auth_names = opts[:auth_names] || ['petstore_auth']
auth_names = opts[:debug_auth_names] || ['petstore_auth']
new_options = opts.merge(
:header_params => header_params,

View File

@@ -55,13 +55,13 @@ module Petstore
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:body]
post_body = opts[:debug_body]
# return_type
return_type = opts[:return_type]
return_type = opts[:debug_return_type]
# auth_names
auth_names = opts[:auth_names] || []
auth_names = opts[:debug_auth_names] || []
new_options = opts.merge(
:header_params => header_params,
@@ -111,13 +111,13 @@ module Petstore
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:body]
post_body = opts[:debug_body]
# return_type
return_type = opts[:return_type] || 'Hash<String, Integer>'
return_type = opts[:debug_return_type] || 'Hash<String, Integer>'
# auth_names
auth_names = opts[:auth_names] || ['api_key']
auth_names = opts[:debug_auth_names] || ['api_key']
new_options = opts.merge(
:header_params => header_params,
@@ -181,13 +181,13 @@ module Petstore
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:body]
post_body = opts[:debug_body]
# return_type
return_type = opts[:return_type] || 'Order'
return_type = opts[:debug_return_type] || 'Order'
# auth_names
auth_names = opts[:auth_names] || []
auth_names = opts[:debug_auth_names] || []
new_options = opts.merge(
:header_params => header_params,
@@ -243,13 +243,13 @@ module Petstore
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:body] || @api_client.object_to_http_body(order)
post_body = opts[:debug_body] || @api_client.object_to_http_body(order)
# return_type
return_type = opts[:return_type] || 'Order'
return_type = opts[:debug_return_type] || 'Order'
# auth_names
auth_names = opts[:auth_names] || []
auth_names = opts[:debug_auth_names] || []
new_options = opts.merge(
:header_params => header_params,

View File

@@ -57,13 +57,13 @@ module Petstore
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:body] || @api_client.object_to_http_body(user)
post_body = opts[:debug_body] || @api_client.object_to_http_body(user)
# return_type
return_type = opts[:return_type]
return_type = opts[:debug_return_type]
# auth_names
auth_names = opts[:auth_names] || []
auth_names = opts[:debug_auth_names] || []
new_options = opts.merge(
:header_params => header_params,
@@ -117,13 +117,13 @@ module Petstore
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:body] || @api_client.object_to_http_body(user)
post_body = opts[:debug_body] || @api_client.object_to_http_body(user)
# return_type
return_type = opts[:return_type]
return_type = opts[:debug_return_type]
# auth_names
auth_names = opts[:auth_names] || []
auth_names = opts[:debug_auth_names] || []
new_options = opts.merge(
:header_params => header_params,
@@ -177,13 +177,13 @@ module Petstore
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:body] || @api_client.object_to_http_body(user)
post_body = opts[:debug_body] || @api_client.object_to_http_body(user)
# return_type
return_type = opts[:return_type]
return_type = opts[:debug_return_type]
# auth_names
auth_names = opts[:auth_names] || []
auth_names = opts[:debug_auth_names] || []
new_options = opts.merge(
:header_params => header_params,
@@ -237,13 +237,13 @@ module Petstore
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:body]
post_body = opts[:debug_body]
# return_type
return_type = opts[:return_type]
return_type = opts[:debug_return_type]
# auth_names
auth_names = opts[:auth_names] || []
auth_names = opts[:debug_auth_names] || []
new_options = opts.merge(
:header_params => header_params,
@@ -297,13 +297,13 @@ module Petstore
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:body]
post_body = opts[:debug_body]
# return_type
return_type = opts[:return_type] || 'User'
return_type = opts[:debug_return_type] || 'User'
# auth_names
auth_names = opts[:auth_names] || []
auth_names = opts[:debug_auth_names] || []
new_options = opts.merge(
:header_params => header_params,
@@ -365,13 +365,13 @@ module Petstore
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:body]
post_body = opts[:debug_body]
# return_type
return_type = opts[:return_type] || 'String'
return_type = opts[:debug_return_type] || 'String'
# auth_names
auth_names = opts[:auth_names] || []
auth_names = opts[:debug_auth_names] || []
new_options = opts.merge(
:header_params => header_params,
@@ -417,13 +417,13 @@ module Petstore
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:body]
post_body = opts[:debug_body]
# return_type
return_type = opts[:return_type]
return_type = opts[:debug_return_type]
# auth_names
auth_names = opts[:auth_names] || []
auth_names = opts[:debug_auth_names] || []
new_options = opts.merge(
:header_params => header_params,
@@ -485,13 +485,13 @@ module Petstore
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:body] || @api_client.object_to_http_body(user)
post_body = opts[:debug_body] || @api_client.object_to_http_body(user)
# return_type
return_type = opts[:return_type]
return_type = opts[:debug_return_type]
# auth_names
auth_names = opts[:auth_names] || []
auth_names = opts[:debug_auth_names] || []
new_options = opts.merge(
:header_params => header_params,