Skip to content

Commit c4f0cc3

Browse files
committed
revert pydantic-v1
1 parent bb0ead0 commit c4f0cc3

4 files changed

Lines changed: 12 additions & 72 deletions

File tree

modules/openapi-generator/src/main/resources/python-pydantic-v1/configuration.mustache

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -47,23 +47,8 @@ class Configuration:
4747
string values to replace variables in templated server configuration.
4848
The validation of enums is performed for variables with defined enum
4949
values before.
50-
:param verify_ssl: bool - Set this to false to skip verifying SSL certificate
51-
when calling API from https server.
5250
:param ssl_ca_cert: str - the path to a file of concatenated CA certificates
5351
in PEM format.
54-
:param retries: Retry configuration (e.g. urllib3.util.retry.Retry).
55-
:param cert_file: The path to a client certificate file, for mTLS.
56-
:param key_file: The path to a client key file, for mTLS.
57-
:param assert_hostname: Set this to True/False to enable/disable SSL hostname verification.
58-
:param tls_server_name: SSL/TLS Server Name Indication (SNI). Set this to the SNI value expected by the server.
59-
:param connection_pool_maxsize: Connection pool max size. Defaults to 100 for asyncio, cpu_count * 5 for sync.
60-
:param proxy: Proxy URL.
61-
:param proxy_headers: Proxy headers.
62-
:param safe_chars_for_path_param: Safe characters for path parameter encoding.
63-
:param client_side_validation: Enable client-side validation. Default True.
64-
:param socket_options: Options to pass down to the underlying urllib3 socket.
65-
:param datetime_format: Datetime format string for serialization.
66-
:param date_format: Date format string for serialization.
6752

6853
{{#hasAuthMethods}}
6954
:Example:
@@ -161,7 +146,7 @@ conf = {{{packageName}}}.Configuration(
161146
{{/hasHttpSignatureMethods}}
162147
server_index=None, server_variables=None,
163148
server_operation_index=None, server_operation_variables=None,
164-
ssl_ca_cert=None, verify_ssl=True,
149+
ssl_ca_cert=None,
165150
) -> None:
166151
"""Constructor
167152
"""
@@ -230,7 +215,7 @@ conf = {{{packageName}}}.Configuration(
230215
"""Debug switch
231216
"""
232217

233-
self.verify_ssl = verify_ssl
218+
self.verify_ssl = True
234219
"""SSL/TLS verification
235220
Set this to false to skip verifying SSL certificate when calling API
236221
from https server.
@@ -628,4 +613,4 @@ conf = {{{packageName}}}.Configuration(
628613
def host(self, value):
629614
"""Fix base path."""
630615
self._base_path = value
631-
self.server_index = None
616+
self.server_index = None

samples/client/echo_api/python-pydantic-v1/openapi_client/configuration.py

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -51,23 +51,8 @@ class Configuration:
5151
string values to replace variables in templated server configuration.
5252
The validation of enums is performed for variables with defined enum
5353
values before.
54-
:param verify_ssl: bool - Set this to false to skip verifying SSL certificate
55-
when calling API from https server.
5654
:param ssl_ca_cert: str - the path to a file of concatenated CA certificates
5755
in PEM format.
58-
:param retries: Retry configuration (e.g. urllib3.util.retry.Retry).
59-
:param cert_file: The path to a client certificate file, for mTLS.
60-
:param key_file: The path to a client key file, for mTLS.
61-
:param assert_hostname: Set this to True/False to enable/disable SSL hostname verification.
62-
:param tls_server_name: SSL/TLS Server Name Indication (SNI). Set this to the SNI value expected by the server.
63-
:param connection_pool_maxsize: Connection pool max size. Defaults to 100 for asyncio, cpu_count * 5 for sync.
64-
:param proxy: Proxy URL.
65-
:param proxy_headers: Proxy headers.
66-
:param safe_chars_for_path_param: Safe characters for path parameter encoding.
67-
:param client_side_validation: Enable client-side validation. Default True.
68-
:param socket_options: Options to pass down to the underlying urllib3 socket.
69-
:param datetime_format: Datetime format string for serialization.
70-
:param date_format: Date format string for serialization.
7156
7257
:Example:
7358
@@ -96,7 +81,7 @@ def __init__(self, host=None,
9681
access_token=None,
9782
server_index=None, server_variables=None,
9883
server_operation_index=None, server_operation_variables=None,
99-
ssl_ca_cert=None, verify_ssl=True,
84+
ssl_ca_cert=None,
10085
) -> None:
10186
"""Constructor
10287
"""
@@ -158,7 +143,7 @@ def __init__(self, host=None,
158143
"""Debug switch
159144
"""
160145

161-
self.verify_ssl = verify_ssl
146+
self.verify_ssl = True
162147
"""SSL/TLS verification
163148
Set this to false to skip verifying SSL certificate when calling API
164149
from https server.
@@ -478,4 +463,4 @@ def host(self):
478463
def host(self, value):
479464
"""Fix base path."""
480465
self._base_path = value
481-
self.server_index = None
466+
self.server_index = None

samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/petstore_api/configuration.py

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -51,23 +51,8 @@ class Configuration:
5151
string values to replace variables in templated server configuration.
5252
The validation of enums is performed for variables with defined enum
5353
values before.
54-
:param verify_ssl: bool - Set this to false to skip verifying SSL certificate
55-
when calling API from https server.
5654
:param ssl_ca_cert: str - the path to a file of concatenated CA certificates
5755
in PEM format.
58-
:param retries: Retry configuration (e.g. urllib3.util.retry.Retry).
59-
:param cert_file: The path to a client certificate file, for mTLS.
60-
:param key_file: The path to a client key file, for mTLS.
61-
:param assert_hostname: Set this to True/False to enable/disable SSL hostname verification.
62-
:param tls_server_name: SSL/TLS Server Name Indication (SNI). Set this to the SNI value expected by the server.
63-
:param connection_pool_maxsize: Connection pool max size. Defaults to 100 for asyncio, cpu_count * 5 for sync.
64-
:param proxy: Proxy URL.
65-
:param proxy_headers: Proxy headers.
66-
:param safe_chars_for_path_param: Safe characters for path parameter encoding.
67-
:param client_side_validation: Enable client-side validation. Default True.
68-
:param socket_options: Options to pass down to the underlying urllib3 socket.
69-
:param datetime_format: Datetime format string for serialization.
70-
:param date_format: Date format string for serialization.
7156
7257
:Example:
7358
@@ -155,7 +140,7 @@ def __init__(self, host=None,
155140
signing_info=None,
156141
server_index=None, server_variables=None,
157142
server_operation_index=None, server_operation_variables=None,
158-
ssl_ca_cert=None, verify_ssl=True,
143+
ssl_ca_cert=None,
159144
) -> None:
160145
"""Constructor
161146
"""
@@ -222,7 +207,7 @@ def __init__(self, host=None,
222207
"""Debug switch
223208
"""
224209

225-
self.verify_ssl = verify_ssl
210+
self.verify_ssl = True
226211
"""SSL/TLS verification
227212
Set this to false to skip verifying SSL certificate when calling API
228213
from https server.
@@ -613,4 +598,4 @@ def host(self):
613598
def host(self, value):
614599
"""Fix base path."""
615600
self._base_path = value
616-
self.server_index = None
601+
self.server_index = None

samples/openapi3/client/petstore/python-pydantic-v1/petstore_api/configuration.py

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -52,23 +52,8 @@ class Configuration:
5252
string values to replace variables in templated server configuration.
5353
The validation of enums is performed for variables with defined enum
5454
values before.
55-
:param verify_ssl: bool - Set this to false to skip verifying SSL certificate
56-
when calling API from https server.
5755
:param ssl_ca_cert: str - the path to a file of concatenated CA certificates
5856
in PEM format.
59-
:param retries: Retry configuration (e.g. urllib3.util.retry.Retry).
60-
:param cert_file: The path to a client certificate file, for mTLS.
61-
:param key_file: The path to a client key file, for mTLS.
62-
:param assert_hostname: Set this to True/False to enable/disable SSL hostname verification.
63-
:param tls_server_name: SSL/TLS Server Name Indication (SNI). Set this to the SNI value expected by the server.
64-
:param connection_pool_maxsize: Connection pool max size. Defaults to 100 for asyncio, cpu_count * 5 for sync.
65-
:param proxy: Proxy URL.
66-
:param proxy_headers: Proxy headers.
67-
:param safe_chars_for_path_param: Safe characters for path parameter encoding.
68-
:param client_side_validation: Enable client-side validation. Default True.
69-
:param socket_options: Options to pass down to the underlying urllib3 socket.
70-
:param datetime_format: Datetime format string for serialization.
71-
:param date_format: Date format string for serialization.
7257
7358
:Example:
7459
@@ -156,7 +141,7 @@ def __init__(self, host=None,
156141
signing_info=None,
157142
server_index=None, server_variables=None,
158143
server_operation_index=None, server_operation_variables=None,
159-
ssl_ca_cert=None, verify_ssl=True,
144+
ssl_ca_cert=None,
160145
) -> None:
161146
"""Constructor
162147
"""
@@ -223,7 +208,7 @@ def __init__(self, host=None,
223208
"""Debug switch
224209
"""
225210

226-
self.verify_ssl = verify_ssl
211+
self.verify_ssl = True
227212
"""SSL/TLS verification
228213
Set this to false to skip verifying SSL certificate when calling API
229214
from https server.
@@ -617,4 +602,4 @@ def host(self):
617602
def host(self, value):
618603
"""Fix base path."""
619604
self._base_path = value
620-
self.server_index = None
605+
self.server_index = None

0 commit comments

Comments
 (0)