mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-03 00:43:46 +00:00
avoid setting debug property if not needed (#18872)
* avoid setting debug property if not needed * update samples * fix compatibility with python 3.7 * always set Configuration.__debug * update samples * check `Configuration` behavior when debug parameter is / is not set * address PR requests
This commit is contained in:
@@ -86,6 +86,8 @@ conf = openapi_client.Configuration(
|
||||
server_operation_index=None, server_operation_variables=None,
|
||||
ssl_ca_cert=None,
|
||||
retries=None,
|
||||
*,
|
||||
debug: Optional[bool] = None
|
||||
) -> None:
|
||||
"""Constructor
|
||||
"""
|
||||
@@ -143,7 +145,10 @@ conf = openapi_client.Configuration(
|
||||
self.logger_file = None
|
||||
"""Debug file location
|
||||
"""
|
||||
self.debug = False
|
||||
if debug is not None:
|
||||
self.debug = debug
|
||||
else:
|
||||
self.__debug = False
|
||||
"""Debug switch
|
||||
"""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user