python: type API client internal structures (#16692)

* In samples/openapi3/client/petstore/python, this reduces the mypy errors from 435 to 178 errors
* In samples/openapi3/client/petstore/python-aiohttp, this reduces the mypy errors from 381 to 124 errors
* In samples/client/echo_api/python, this reduces the mypy errors from 131 to 25 errors
This commit is contained in:
Jonathan Ballet
2023-10-01 14:45:11 +02:00
committed by GitHub
parent ce4b2fe7bd
commit 56bc383dc1
21 changed files with 813 additions and 792 deletions

View File

@@ -7,6 +7,7 @@ import io
import warnings import warnings
from pydantic import validate_call, ValidationError from pydantic import validate_call, ValidationError
from typing import Dict, List, Optional, Tuple
{{#imports}} {{#imports}}
{{import}} {{import}}
@@ -179,10 +180,10 @@ class {{classname}}:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
{{#pathParams}} {{#pathParams}}
if _params['{{paramName}}'] is not None: if _params['{{paramName}}'] is not None:
_path_params['{{baseName}}'] = _params['{{paramName}}'] _path_params['{{baseName}}'] = _params['{{paramName}}']
@@ -193,7 +194,7 @@ class {{classname}}:
{{/pathParams}} {{/pathParams}}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
{{#queryParams}} {{#queryParams}}
if _params.get('{{paramName}}') is not None: # noqa: E501 if _params.get('{{paramName}}') is not None: # noqa: E501
{{#isDateTime}} {{#isDateTime}}
@@ -229,8 +230,8 @@ class {{classname}}:
{{/headerParams}} {{/headerParams}}
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
{{#formParams}} {{#formParams}}
if _params['{{paramName}}'] is not None: if _params['{{paramName}}'] is not None:
{{^isFile}} {{^isFile}}
@@ -274,12 +275,12 @@ class {{classname}}:
{{/hasConsumes}} {{/hasConsumes}}
# authentication setting # authentication setting
_auth_settings = [{{#authMethods}}'{{name}}'{{^-last}}, {{/-last}}{{/authMethods}}] # noqa: E501 _auth_settings: List[str] = [{{#authMethods}}'{{name}}'{{^-last}}, {{/-last}}{{/authMethods}}] # noqa: E501
{{#returnType}} {{#returnType}}
{{#responses}} {{#responses}}
{{#-first}} {{#-first}}
_response_types_map = { _response_types_map: Dict[str, Optional[str]] = {
{{/-first}} {{/-first}}
{{^isWildcard}} {{^isWildcard}}
'{{code}}': {{#dataType}}"{{.}}"{{/dataType}}{{^dataType}}None{{/dataType}}, '{{code}}': {{#dataType}}"{{.}}"{{/dataType}}{{^dataType}}None{{/dataType}},
@@ -290,7 +291,7 @@ class {{classname}}:
{{/responses}} {{/responses}}
{{/returnType}} {{/returnType}}
{{^returnType}} {{^returnType}}
_response_types_map = {} _response_types_map: Dict[str, Optional[str]] = {}
{{/returnType}} {{/returnType}}
return {{#asyncio}}await {{/asyncio}}self.api_client.call_api( return {{#asyncio}}await {{/asyncio}}self.api_client.call_api(

View File

@@ -18,6 +18,7 @@ import io
import warnings import warnings
from pydantic import validate_call, ValidationError from pydantic import validate_call, ValidationError
from typing import Dict, List, Optional, Tuple
from openapi_client.api_client import ApiClient from openapi_client.api_client import ApiClient
@@ -130,18 +131,18 @@ class AuthApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
# set the HTTP header `Accept` # set the HTTP header `Accept`
@@ -149,9 +150,9 @@ class AuthApi:
['text/plain']) # noqa: E501 ['text/plain']) # noqa: E501
# authentication setting # authentication setting
_auth_settings = ['http_auth'] # noqa: E501 _auth_settings: List[str] = ['http_auth'] # noqa: E501
_response_types_map = { _response_types_map: Dict[str, Optional[str]] = {
'200': "str", '200': "str",
} }

View File

@@ -18,6 +18,7 @@ import io
import warnings import warnings
from pydantic import validate_call, ValidationError from pydantic import validate_call, ValidationError
from typing import Dict, List, Optional, Tuple
from pydantic import Field from pydantic import Field
from typing_extensions import Annotated from typing_extensions import Annotated
@@ -138,18 +139,18 @@ class BodyApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
# set the HTTP header `Accept` # set the HTTP header `Accept`
@@ -157,9 +158,9 @@ class BodyApi:
['image/gif']) # noqa: E501 ['image/gif']) # noqa: E501
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = { _response_types_map: Dict[str, Optional[str]] = {
'200': "bytearray", '200': "bytearray",
} }
@@ -275,18 +276,18 @@ class BodyApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
if _params['body'] is not None: if _params['body'] is not None:
@@ -309,9 +310,9 @@ class BodyApi:
_header_params['Content-Type'] = _content_types_list _header_params['Content-Type'] = _content_types_list
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = { _response_types_map: Dict[str, Optional[str]] = {
'200': "str", '200': "str",
} }
@@ -427,18 +428,18 @@ class BodyApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
if _params['files'] is not None: if _params['files'] is not None:
_files['files'] = _params['files'] _files['files'] = _params['files']
_collection_formats['files'] = 'csv' _collection_formats['files'] = 'csv'
@@ -457,9 +458,9 @@ class BodyApi:
_header_params['Content-Type'] = _content_types_list _header_params['Content-Type'] = _content_types_list
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = { _response_types_map: Dict[str, Optional[str]] = {
'200': "str", '200': "str",
} }
@@ -575,18 +576,18 @@ class BodyApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
if _params['body'] is not None: if _params['body'] is not None:
@@ -604,9 +605,9 @@ class BodyApi:
_header_params['Content-Type'] = _content_types_list _header_params['Content-Type'] = _content_types_list
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = { _response_types_map: Dict[str, Optional[str]] = {
'200': "str", '200': "str",
} }
@@ -722,18 +723,18 @@ class BodyApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
if _params['pet'] is not None: if _params['pet'] is not None:
@@ -751,9 +752,9 @@ class BodyApi:
_header_params['Content-Type'] = _content_types_list _header_params['Content-Type'] = _content_types_list
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = { _response_types_map: Dict[str, Optional[str]] = {
'200': "Pet", '200': "Pet",
} }
@@ -869,18 +870,18 @@ class BodyApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
if _params['pet'] is not None: if _params['pet'] is not None:
@@ -898,9 +899,9 @@ class BodyApi:
_header_params['Content-Type'] = _content_types_list _header_params['Content-Type'] = _content_types_list
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = { _response_types_map: Dict[str, Optional[str]] = {
'200': "str", '200': "str",
} }
@@ -1016,18 +1017,18 @@ class BodyApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
if _params['tag'] is not None: if _params['tag'] is not None:
@@ -1045,9 +1046,9 @@ class BodyApi:
_header_params['Content-Type'] = _content_types_list _header_params['Content-Type'] = _content_types_list
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = { _response_types_map: Dict[str, Optional[str]] = {
'200': "str", '200': "str",
} }

View File

@@ -18,6 +18,7 @@ import io
import warnings import warnings
from pydantic import validate_call, ValidationError from pydantic import validate_call, ValidationError
from typing import Dict, List, Optional, Tuple
from pydantic import StrictBool, StrictInt, StrictStr from pydantic import StrictBool, StrictInt, StrictStr
@@ -149,18 +150,18 @@ class FormApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
if _params['integer_form'] is not None: if _params['integer_form'] is not None:
_form_params.append(('integer_form', _params['integer_form'])) _form_params.append(('integer_form', _params['integer_form']))
@@ -184,9 +185,9 @@ class FormApi:
_header_params['Content-Type'] = _content_types_list _header_params['Content-Type'] = _content_types_list
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = { _response_types_map: Dict[str, Optional[str]] = {
'200': "str", '200': "str",
} }
@@ -327,18 +328,18 @@ class FormApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
if _params['form1'] is not None: if _params['form1'] is not None:
_form_params.append(('form1', _params['form1'])) _form_params.append(('form1', _params['form1']))
@@ -371,9 +372,9 @@ class FormApi:
_header_params['Content-Type'] = _content_types_list _header_params['Content-Type'] = _content_types_list
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = { _response_types_map: Dict[str, Optional[str]] = {
'200': "str", '200': "str",
} }

View File

@@ -18,6 +18,7 @@ import io
import warnings import warnings
from pydantic import validate_call, ValidationError from pydantic import validate_call, ValidationError
from typing import Dict, List, Optional, Tuple
from pydantic import StrictBool, StrictInt, StrictStr from pydantic import StrictBool, StrictInt, StrictStr
@@ -149,13 +150,13 @@ class HeaderApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
if _params['integer_header'] is not None: if _params['integer_header'] is not None:
@@ -168,8 +169,8 @@ class HeaderApi:
_header_params['string_header'] = _params['string_header'] _header_params['string_header'] = _params['string_header']
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
# set the HTTP header `Accept` # set the HTTP header `Accept`
@@ -177,9 +178,9 @@ class HeaderApi:
['text/plain']) # noqa: E501 ['text/plain']) # noqa: E501
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = { _response_types_map: Dict[str, Optional[str]] = {
'200': "str", '200': "str",
} }

View File

@@ -18,6 +18,7 @@ import io
import warnings import warnings
from pydantic import validate_call, ValidationError from pydantic import validate_call, ValidationError
from typing import Dict, List, Optional, Tuple
from pydantic import StrictInt, StrictStr from pydantic import StrictInt, StrictStr
@@ -142,10 +143,10 @@ class PathApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
if _params['path_string'] is not None: if _params['path_string'] is not None:
_path_params['path_string'] = _params['path_string'] _path_params['path_string'] = _params['path_string']
@@ -154,12 +155,12 @@ class PathApi:
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
# set the HTTP header `Accept` # set the HTTP header `Accept`
@@ -167,9 +168,9 @@ class PathApi:
['text/plain']) # noqa: E501 ['text/plain']) # noqa: E501
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = { _response_types_map: Dict[str, Optional[str]] = {
'200': "str", '200': "str",
} }

View File

@@ -18,6 +18,7 @@ import io
import warnings import warnings
from pydantic import validate_call, ValidationError from pydantic import validate_call, ValidationError
from typing import Dict, List, Optional, Tuple
from datetime import date, datetime from datetime import date, datetime
@@ -144,21 +145,21 @@ class QueryApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
if _params.get('enum_ref_string_query') is not None: # noqa: E501 if _params.get('enum_ref_string_query') is not None: # noqa: E501
_query_params.append(('enum_ref_string_query', _params['enum_ref_string_query'].value)) _query_params.append(('enum_ref_string_query', _params['enum_ref_string_query'].value))
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
# set the HTTP header `Accept` # set the HTTP header `Accept`
@@ -166,9 +167,9 @@ class QueryApi:
['text/plain']) # noqa: E501 ['text/plain']) # noqa: E501
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = { _response_types_map: Dict[str, Optional[str]] = {
'200': "str", '200': "str",
} }
@@ -294,13 +295,13 @@ class QueryApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
if _params.get('datetime_query') is not None: # noqa: E501 if _params.get('datetime_query') is not None: # noqa: E501
if isinstance(_params['datetime_query'], datetime): if isinstance(_params['datetime_query'], datetime):
_query_params.append(('datetime_query', _params['datetime_query'].strftime(self.api_client.configuration.datetime_format))) _query_params.append(('datetime_query', _params['datetime_query'].strftime(self.api_client.configuration.datetime_format)))
@@ -319,8 +320,8 @@ class QueryApi:
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
# set the HTTP header `Accept` # set the HTTP header `Accept`
@@ -328,9 +329,9 @@ class QueryApi:
['text/plain']) # noqa: E501 ['text/plain']) # noqa: E501
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = { _response_types_map: Dict[str, Optional[str]] = {
'200': "str", '200': "str",
} }
@@ -456,13 +457,13 @@ class QueryApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
if _params.get('integer_query') is not None: # noqa: E501 if _params.get('integer_query') is not None: # noqa: E501
_query_params.append(('integer_query', _params['integer_query'])) _query_params.append(('integer_query', _params['integer_query']))
@@ -475,8 +476,8 @@ class QueryApi:
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
# set the HTTP header `Accept` # set the HTTP header `Accept`
@@ -484,9 +485,9 @@ class QueryApi:
['text/plain']) # noqa: E501 ['text/plain']) # noqa: E501
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = { _response_types_map: Dict[str, Optional[str]] = {
'200': "str", '200': "str",
} }
@@ -602,21 +603,21 @@ class QueryApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
if _params.get('query_object') is not None: # noqa: E501 if _params.get('query_object') is not None: # noqa: E501
_query_params.append(('query_object', _params['query_object'])) _query_params.append(('query_object', _params['query_object']))
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
# set the HTTP header `Accept` # set the HTTP header `Accept`
@@ -624,9 +625,9 @@ class QueryApi:
['text/plain']) # noqa: E501 ['text/plain']) # noqa: E501
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = { _response_types_map: Dict[str, Optional[str]] = {
'200': "str", '200': "str",
} }
@@ -742,21 +743,21 @@ class QueryApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
if _params.get('query_object') is not None: # noqa: E501 if _params.get('query_object') is not None: # noqa: E501
_query_params.append(('query_object', _params['query_object'])) _query_params.append(('query_object', _params['query_object']))
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
# set the HTTP header `Accept` # set the HTTP header `Accept`
@@ -764,9 +765,9 @@ class QueryApi:
['text/plain']) # noqa: E501 ['text/plain']) # noqa: E501
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = { _response_types_map: Dict[str, Optional[str]] = {
'200': "str", '200': "str",
} }
@@ -882,21 +883,21 @@ class QueryApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
if _params.get('query_object') is not None: # noqa: E501 if _params.get('query_object') is not None: # noqa: E501
_query_params.append(('query_object', _params['query_object'])) _query_params.append(('query_object', _params['query_object']))
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
# set the HTTP header `Accept` # set the HTTP header `Accept`
@@ -904,9 +905,9 @@ class QueryApi:
['text/plain']) # noqa: E501 ['text/plain']) # noqa: E501
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = { _response_types_map: Dict[str, Optional[str]] = {
'200': "str", '200': "str",
} }
@@ -1022,21 +1023,21 @@ class QueryApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
if _params.get('query_object') is not None: # noqa: E501 if _params.get('query_object') is not None: # noqa: E501
_query_params.append(('query_object', _params['query_object'])) _query_params.append(('query_object', _params['query_object']))
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
# set the HTTP header `Accept` # set the HTTP header `Accept`
@@ -1044,9 +1045,9 @@ class QueryApi:
['text/plain']) # noqa: E501 ['text/plain']) # noqa: E501
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = { _response_types_map: Dict[str, Optional[str]] = {
'200': "str", '200': "str",
} }
@@ -1162,21 +1163,21 @@ class QueryApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
if _params.get('query_object') is not None: # noqa: E501 if _params.get('query_object') is not None: # noqa: E501
_query_params.append(('query_object', _params['query_object'])) _query_params.append(('query_object', _params['query_object']))
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
# set the HTTP header `Accept` # set the HTTP header `Accept`
@@ -1184,9 +1185,9 @@ class QueryApi:
['text/plain']) # noqa: E501 ['text/plain']) # noqa: E501
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = { _response_types_map: Dict[str, Optional[str]] = {
'200': "str", '200': "str",
} }

View File

@@ -17,6 +17,7 @@ import io
import warnings import warnings
from pydantic import validate_call, ValidationError from pydantic import validate_call, ValidationError
from typing import Dict, List, Optional, Tuple
from pydantic import Field from pydantic import Field
from typing_extensions import Annotated from typing_extensions import Annotated
@@ -122,18 +123,18 @@ class AnotherFakeApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
if _params['client'] is not None: if _params['client'] is not None:
@@ -151,9 +152,9 @@ class AnotherFakeApi:
_header_params['Content-Type'] = _content_types_list _header_params['Content-Type'] = _content_types_list
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = { _response_types_map: Dict[str, Optional[str]] = {
'200': "Client", '200': "Client",
} }

View File

@@ -17,6 +17,7 @@ import io
import warnings import warnings
from pydantic import validate_call, ValidationError from pydantic import validate_call, ValidationError
from typing import Dict, List, Optional, Tuple
from petstore_api.models.foo_get_default_response import FooGetDefaultResponse from petstore_api.models.foo_get_default_response import FooGetDefaultResponse
@@ -113,18 +114,18 @@ class DefaultApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
# set the HTTP header `Accept` # set the HTTP header `Accept`
@@ -132,9 +133,9 @@ class DefaultApi:
['application/json']) # noqa: E501 ['application/json']) # noqa: E501
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = { _response_types_map: Dict[str, Optional[str]] = {
} }
return await self.api_client.call_api( return await self.api_client.call_api(

View File

@@ -17,6 +17,7 @@ import io
import warnings import warnings
from pydantic import validate_call, ValidationError from pydantic import validate_call, ValidationError
from typing import Dict, List, Optional, Tuple
from pydantic import Field from pydantic import Field
from typing_extensions import Annotated from typing_extensions import Annotated
@@ -135,18 +136,18 @@ class FakeApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
if _params['body'] is not None: if _params['body'] is not None:
@@ -160,9 +161,9 @@ class FakeApi:
_header_params['Content-Type'] = _content_types_list _header_params['Content-Type'] = _content_types_list
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = {} _response_types_map: Dict[str, Optional[str]] = {}
return await self.api_client.call_api( return await self.api_client.call_api(
'/fake/any_type_body', 'POST', '/fake/any_type_body', 'POST',
@@ -258,27 +259,27 @@ class FakeApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
if _params.get('enum_ref') is not None: # noqa: E501 if _params.get('enum_ref') is not None: # noqa: E501
_query_params.append(('enum_ref', _params['enum_ref'].value)) _query_params.append(('enum_ref', _params['enum_ref'].value))
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = {} _response_types_map: Dict[str, Optional[str]] = {}
return await self.api_client.call_api( return await self.api_client.call_api(
'/fake/enum_ref_query_parameter', 'GET', '/fake/enum_ref_query_parameter', 'GET',
@@ -369,18 +370,18 @@ class FakeApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
# set the HTTP header `Accept` # set the HTTP header `Accept`
@@ -388,9 +389,9 @@ class FakeApi:
['application/json']) # noqa: E501 ['application/json']) # noqa: E501
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = { _response_types_map: Dict[str, Optional[str]] = {
'200': "HealthCheckResult", '200': "HealthCheckResult",
} }
@@ -498,13 +499,13 @@ class FakeApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
if _params.get('query_1') is not None: # noqa: E501 if _params.get('query_1') is not None: # noqa: E501
_query_params.append(('query_1', _params['query_1'])) _query_params.append(('query_1', _params['query_1']))
@@ -514,8 +515,8 @@ class FakeApi:
_header_params['header_1'] = _params['header_1'] _header_params['header_1'] = _params['header_1']
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
if _params['pet'] is not None: if _params['pet'] is not None:
@@ -529,9 +530,9 @@ class FakeApi:
_header_params['Content-Type'] = _content_types_list _header_params['Content-Type'] = _content_types_list
# authentication setting # authentication setting
_auth_settings = ['http_signature_test'] # noqa: E501 _auth_settings: List[str] = ['http_signature_test'] # noqa: E501
_response_types_map = {} _response_types_map: Dict[str, Optional[str]] = {}
return await self.api_client.call_api( return await self.api_client.call_api(
'/fake/http-signature-test', 'GET', '/fake/http-signature-test', 'GET',
@@ -629,18 +630,18 @@ class FakeApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
if _params['body'] is not None: if _params['body'] is not None:
@@ -658,9 +659,9 @@ class FakeApi:
_header_params['Content-Type'] = _content_types_list _header_params['Content-Type'] = _content_types_list
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = { _response_types_map: Dict[str, Optional[str]] = {
'200': "bool", '200': "bool",
} }
@@ -760,18 +761,18 @@ class FakeApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
if _params['outer_composite'] is not None: if _params['outer_composite'] is not None:
@@ -789,9 +790,9 @@ class FakeApi:
_header_params['Content-Type'] = _content_types_list _header_params['Content-Type'] = _content_types_list
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = { _response_types_map: Dict[str, Optional[str]] = {
'200': "OuterComposite", '200': "OuterComposite",
} }
@@ -891,18 +892,18 @@ class FakeApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
if _params['body'] is not None: if _params['body'] is not None:
@@ -920,9 +921,9 @@ class FakeApi:
_header_params['Content-Type'] = _content_types_list _header_params['Content-Type'] = _content_types_list
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = { _response_types_map: Dict[str, Optional[str]] = {
'200': "float", '200': "float",
} }
@@ -1022,18 +1023,18 @@ class FakeApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
if _params['body'] is not None: if _params['body'] is not None:
@@ -1051,9 +1052,9 @@ class FakeApi:
_header_params['Content-Type'] = _content_types_list _header_params['Content-Type'] = _content_types_list
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = { _response_types_map: Dict[str, Optional[str]] = {
'200': "str", '200': "str",
} }
@@ -1153,18 +1154,18 @@ class FakeApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
if _params['outer_object_with_enum_property'] is not None: if _params['outer_object_with_enum_property'] is not None:
@@ -1182,9 +1183,9 @@ class FakeApi:
_header_params['Content-Type'] = _content_types_list _header_params['Content-Type'] = _content_types_list
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = { _response_types_map: Dict[str, Optional[str]] = {
'200': "OuterObjectWithEnumProperty", '200': "OuterObjectWithEnumProperty",
} }
@@ -1277,18 +1278,18 @@ class FakeApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
# set the HTTP header `Accept` # set the HTTP header `Accept`
@@ -1296,9 +1297,9 @@ class FakeApi:
['application/json']) # noqa: E501 ['application/json']) # noqa: E501
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = { _response_types_map: Dict[str, Optional[str]] = {
'200': "List[List[Tag]]", '200': "List[List[Tag]]",
} }
@@ -1396,27 +1397,27 @@ class FakeApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
if _params.get('uuid_example') is not None: # noqa: E501 if _params.get('uuid_example') is not None: # noqa: E501
_query_params.append(('uuid_example', _params['uuid_example'])) _query_params.append(('uuid_example', _params['uuid_example']))
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = {} _response_types_map: Dict[str, Optional[str]] = {}
return await self.api_client.call_api( return await self.api_client.call_api(
'/fake/uuid_example', 'GET', '/fake/uuid_example', 'GET',
@@ -1514,18 +1515,18 @@ class FakeApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
if _params['body'] is not None: if _params['body'] is not None:
@@ -1544,9 +1545,9 @@ class FakeApi:
_header_params['Content-Type'] = _content_types_list _header_params['Content-Type'] = _content_types_list
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = {} _response_types_map: Dict[str, Optional[str]] = {}
return await self.api_client.call_api( return await self.api_client.call_api(
'/fake/body-with-binary', 'PUT', '/fake/body-with-binary', 'PUT',
@@ -1644,18 +1645,18 @@ class FakeApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
if _params['file_schema_test_class'] is not None: if _params['file_schema_test_class'] is not None:
@@ -1669,9 +1670,9 @@ class FakeApi:
_header_params['Content-Type'] = _content_types_list _header_params['Content-Type'] = _content_types_list
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = {} _response_types_map: Dict[str, Optional[str]] = {}
return await self.api_client.call_api( return await self.api_client.call_api(
'/fake/body-with-file-schema', 'PUT', '/fake/body-with-file-schema', 'PUT',
@@ -1772,21 +1773,21 @@ class FakeApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
if _params.get('query') is not None: # noqa: E501 if _params.get('query') is not None: # noqa: E501
_query_params.append(('query', _params['query'])) _query_params.append(('query', _params['query']))
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
if _params['user'] is not None: if _params['user'] is not None:
@@ -1800,9 +1801,9 @@ class FakeApi:
_header_params['Content-Type'] = _content_types_list _header_params['Content-Type'] = _content_types_list
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = {} _response_types_map: Dict[str, Optional[str]] = {}
return await self.api_client.call_api( return await self.api_client.call_api(
'/fake/body-with-query-params', 'PUT', '/fake/body-with-query-params', 'PUT',
@@ -1900,18 +1901,18 @@ class FakeApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
if _params['client'] is not None: if _params['client'] is not None:
@@ -1929,9 +1930,9 @@ class FakeApi:
_header_params['Content-Type'] = _content_types_list _header_params['Content-Type'] = _content_types_list
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = { _response_types_map: Dict[str, Optional[str]] = {
'200': "Client", '200': "Client",
} }
@@ -2034,13 +2035,13 @@ class FakeApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
if _params.get('date_time_query') is not None: # noqa: E501 if _params.get('date_time_query') is not None: # noqa: E501
if isinstance(_params['date_time_query'], datetime): if isinstance(_params['date_time_query'], datetime):
_query_params.append(('date_time_query', _params['date_time_query'].strftime(self.api_client.configuration.datetime_format))) _query_params.append(('date_time_query', _params['date_time_query'].strftime(self.api_client.configuration.datetime_format)))
@@ -2053,14 +2054,14 @@ class FakeApi:
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = {} _response_types_map: Dict[str, Optional[str]] = {}
return await self.api_client.call_api( return await self.api_client.call_api(
'/fake/date-time-query-params', 'PUT', '/fake/date-time-query-params', 'PUT',
@@ -2228,18 +2229,18 @@ class FakeApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
if _params['integer'] is not None: if _params['integer'] is not None:
_form_params.append(('integer', _params['integer'])) _form_params.append(('integer', _params['integer']))
@@ -2295,9 +2296,9 @@ class FakeApi:
_header_params['Content-Type'] = _content_types_list _header_params['Content-Type'] = _content_types_list
# authentication setting # authentication setting
_auth_settings = ['http_basic_test'] # noqa: E501 _auth_settings: List[str] = ['http_basic_test'] # noqa: E501
_response_types_map = {} _response_types_map: Dict[str, Optional[str]] = {}
return await self.api_client.call_api( return await self.api_client.call_api(
'/fake', 'POST', '/fake', 'POST',
@@ -2420,13 +2421,13 @@ class FakeApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
if _params.get('required_string_group') is not None: # noqa: E501 if _params.get('required_string_group') is not None: # noqa: E501
_query_params.append(('required_string_group', _params['required_string_group'])) _query_params.append(('required_string_group', _params['required_string_group']))
@@ -2448,14 +2449,14 @@ class FakeApi:
_header_params['boolean_group'] = _params['boolean_group'] _header_params['boolean_group'] = _params['boolean_group']
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
# authentication setting # authentication setting
_auth_settings = ['bearer_test'] # noqa: E501 _auth_settings: List[str] = ['bearer_test'] # noqa: E501
_response_types_map = {} _response_types_map: Dict[str, Optional[str]] = {}
return await self.api_client.call_api( return await self.api_client.call_api(
'/fake', 'DELETE', '/fake', 'DELETE',
@@ -2553,18 +2554,18 @@ class FakeApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
if _params['request_body'] is not None: if _params['request_body'] is not None:
@@ -2578,9 +2579,9 @@ class FakeApi:
_header_params['Content-Type'] = _content_types_list _header_params['Content-Type'] = _content_types_list
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = {} _response_types_map: Dict[str, Optional[str]] = {}
return await self.api_client.call_api( return await self.api_client.call_api(
'/fake/inline-additionalProperties', 'POST', '/fake/inline-additionalProperties', 'POST',
@@ -2678,18 +2679,18 @@ class FakeApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
if _params['test_inline_freeform_additional_properties_request'] is not None: if _params['test_inline_freeform_additional_properties_request'] is not None:
@@ -2703,9 +2704,9 @@ class FakeApi:
_header_params['Content-Type'] = _content_types_list _header_params['Content-Type'] = _content_types_list
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = {} _response_types_map: Dict[str, Optional[str]] = {}
return await self.api_client.call_api( return await self.api_client.call_api(
'/fake/inline-freeform-additionalProperties', 'POST', '/fake/inline-freeform-additionalProperties', 'POST',
@@ -2808,18 +2809,18 @@ class FakeApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
if _params['param'] is not None: if _params['param'] is not None:
_form_params.append(('param', _params['param'])) _form_params.append(('param', _params['param']))
@@ -2836,9 +2837,9 @@ class FakeApi:
_header_params['Content-Type'] = _content_types_list _header_params['Content-Type'] = _content_types_list
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = {} _response_types_map: Dict[str, Optional[str]] = {}
return await self.api_client.call_api( return await self.api_client.call_api(
'/fake/jsonFormData', 'GET', '/fake/jsonFormData', 'GET',
@@ -2966,13 +2967,13 @@ class FakeApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
if _params.get('pipe') is not None: # noqa: E501 if _params.get('pipe') is not None: # noqa: E501
_query_params.append(('pipe', _params['pipe'])) _query_params.append(('pipe', _params['pipe']))
_collection_formats['pipe'] = 'pipes' _collection_formats['pipe'] = 'pipes'
@@ -3002,14 +3003,14 @@ class FakeApi:
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = {} _response_types_map: Dict[str, Optional[str]] = {}
return await self.api_client.call_api( return await self.api_client.call_api(
'/fake/test-query-parameters', 'PUT', '/fake/test-query-parameters', 'PUT',

View File

@@ -17,6 +17,7 @@ import io
import warnings import warnings
from pydantic import validate_call, ValidationError from pydantic import validate_call, ValidationError
from typing import Dict, List, Optional, Tuple
from pydantic import Field from pydantic import Field
from typing_extensions import Annotated from typing_extensions import Annotated
@@ -122,18 +123,18 @@ class FakeClassnameTags123Api:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
if _params['client'] is not None: if _params['client'] is not None:
@@ -151,9 +152,9 @@ class FakeClassnameTags123Api:
_header_params['Content-Type'] = _content_types_list _header_params['Content-Type'] = _content_types_list
# authentication setting # authentication setting
_auth_settings = ['api_key_query'] # noqa: E501 _auth_settings: List[str] = ['api_key_query'] # noqa: E501
_response_types_map = { _response_types_map: Dict[str, Optional[str]] = {
'200': "Client", '200': "Client",
} }

View File

@@ -17,6 +17,7 @@ import io
import warnings import warnings
from pydantic import validate_call, ValidationError from pydantic import validate_call, ValidationError
from typing import Dict, List, Optional, Tuple
from pydantic import Field from pydantic import Field
from typing_extensions import Annotated from typing_extensions import Annotated
@@ -127,18 +128,18 @@ class PetApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
if _params['pet'] is not None: if _params['pet'] is not None:
@@ -152,9 +153,9 @@ class PetApi:
_header_params['Content-Type'] = _content_types_list _header_params['Content-Type'] = _content_types_list
# authentication setting # authentication setting
_auth_settings = ['petstore_auth', 'http_signature_test'] # noqa: E501 _auth_settings: List[str] = ['petstore_auth', 'http_signature_test'] # noqa: E501
_response_types_map = {} _response_types_map: Dict[str, Optional[str]] = {}
return await self.api_client.call_api( return await self.api_client.call_api(
'/pet', 'POST', '/pet', 'POST',
@@ -257,30 +258,30 @@ class PetApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
if _params['pet_id'] is not None: if _params['pet_id'] is not None:
_path_params['petId'] = _params['pet_id'] _path_params['petId'] = _params['pet_id']
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
if _params['api_key'] is not None: if _params['api_key'] is not None:
_header_params['api_key'] = _params['api_key'] _header_params['api_key'] = _params['api_key']
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
# authentication setting # authentication setting
_auth_settings = ['petstore_auth'] # noqa: E501 _auth_settings: List[str] = ['petstore_auth'] # noqa: E501
_response_types_map = {} _response_types_map: Dict[str, Optional[str]] = {}
return await self.api_client.call_api( return await self.api_client.call_api(
'/pet/{petId}', 'DELETE', '/pet/{petId}', 'DELETE',
@@ -378,13 +379,13 @@ class PetApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
if _params.get('status') is not None: # noqa: E501 if _params.get('status') is not None: # noqa: E501
_query_params.append(('status', _params['status'])) _query_params.append(('status', _params['status']))
_collection_formats['status'] = 'csv' _collection_formats['status'] = 'csv'
@@ -392,8 +393,8 @@ class PetApi:
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
# set the HTTP header `Accept` # set the HTTP header `Accept`
@@ -401,9 +402,9 @@ class PetApi:
['application/xml', 'application/json']) # noqa: E501 ['application/xml', 'application/json']) # noqa: E501
# authentication setting # authentication setting
_auth_settings = ['petstore_auth', 'http_signature_test'] # noqa: E501 _auth_settings: List[str] = ['petstore_auth', 'http_signature_test'] # noqa: E501
_response_types_map = { _response_types_map: Dict[str, Optional[str]] = {
'200': "List[Pet]", '200': "List[Pet]",
'400': None, '400': None,
} }
@@ -506,13 +507,13 @@ class PetApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
if _params.get('tags') is not None: # noqa: E501 if _params.get('tags') is not None: # noqa: E501
_query_params.append(('tags', _params['tags'])) _query_params.append(('tags', _params['tags']))
_collection_formats['tags'] = 'csv' _collection_formats['tags'] = 'csv'
@@ -520,8 +521,8 @@ class PetApi:
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
# set the HTTP header `Accept` # set the HTTP header `Accept`
@@ -529,9 +530,9 @@ class PetApi:
['application/xml', 'application/json']) # noqa: E501 ['application/xml', 'application/json']) # noqa: E501
# authentication setting # authentication setting
_auth_settings = ['petstore_auth', 'http_signature_test'] # noqa: E501 _auth_settings: List[str] = ['petstore_auth', 'http_signature_test'] # noqa: E501
_response_types_map = { _response_types_map: Dict[str, Optional[str]] = {
'200': "List[Pet]", '200': "List[Pet]",
'400': None, '400': None,
} }
@@ -632,21 +633,21 @@ class PetApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
if _params['pet_id'] is not None: if _params['pet_id'] is not None:
_path_params['petId'] = _params['pet_id'] _path_params['petId'] = _params['pet_id']
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
# set the HTTP header `Accept` # set the HTTP header `Accept`
@@ -654,9 +655,9 @@ class PetApi:
['application/xml', 'application/json']) # noqa: E501 ['application/xml', 'application/json']) # noqa: E501
# authentication setting # authentication setting
_auth_settings = ['api_key'] # noqa: E501 _auth_settings: List[str] = ['api_key'] # noqa: E501
_response_types_map = { _response_types_map: Dict[str, Optional[str]] = {
'200': "Pet", '200': "Pet",
'400': None, '400': None,
'404': None, '404': None,
@@ -758,18 +759,18 @@ class PetApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
if _params['pet'] is not None: if _params['pet'] is not None:
@@ -783,9 +784,9 @@ class PetApi:
_header_params['Content-Type'] = _content_types_list _header_params['Content-Type'] = _content_types_list
# authentication setting # authentication setting
_auth_settings = ['petstore_auth', 'http_signature_test'] # noqa: E501 _auth_settings: List[str] = ['petstore_auth', 'http_signature_test'] # noqa: E501
_response_types_map = {} _response_types_map: Dict[str, Optional[str]] = {}
return await self.api_client.call_api( return await self.api_client.call_api(
'/pet', 'PUT', '/pet', 'PUT',
@@ -893,21 +894,21 @@ class PetApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
if _params['pet_id'] is not None: if _params['pet_id'] is not None:
_path_params['petId'] = _params['pet_id'] _path_params['petId'] = _params['pet_id']
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
if _params['name'] is not None: if _params['name'] is not None:
_form_params.append(('name', _params['name'])) _form_params.append(('name', _params['name']))
@@ -924,9 +925,9 @@ class PetApi:
_header_params['Content-Type'] = _content_types_list _header_params['Content-Type'] = _content_types_list
# authentication setting # authentication setting
_auth_settings = ['petstore_auth'] # noqa: E501 _auth_settings: List[str] = ['petstore_auth'] # noqa: E501
_response_types_map = {} _response_types_map: Dict[str, Optional[str]] = {}
return await self.api_client.call_api( return await self.api_client.call_api(
'/pet/{petId}', 'POST', '/pet/{petId}', 'POST',
@@ -1034,21 +1035,21 @@ class PetApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
if _params['pet_id'] is not None: if _params['pet_id'] is not None:
_path_params['petId'] = _params['pet_id'] _path_params['petId'] = _params['pet_id']
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
if _params['additional_metadata'] is not None: if _params['additional_metadata'] is not None:
_form_params.append(('additionalMetadata', _params['additional_metadata'])) _form_params.append(('additionalMetadata', _params['additional_metadata']))
@@ -1069,9 +1070,9 @@ class PetApi:
_header_params['Content-Type'] = _content_types_list _header_params['Content-Type'] = _content_types_list
# authentication setting # authentication setting
_auth_settings = ['petstore_auth'] # noqa: E501 _auth_settings: List[str] = ['petstore_auth'] # noqa: E501
_response_types_map = { _response_types_map: Dict[str, Optional[str]] = {
'200': "ApiResponse", '200': "ApiResponse",
} }
@@ -1181,21 +1182,21 @@ class PetApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
if _params['pet_id'] is not None: if _params['pet_id'] is not None:
_path_params['petId'] = _params['pet_id'] _path_params['petId'] = _params['pet_id']
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
if _params['additional_metadata'] is not None: if _params['additional_metadata'] is not None:
_form_params.append(('additionalMetadata', _params['additional_metadata'])) _form_params.append(('additionalMetadata', _params['additional_metadata']))
@@ -1216,9 +1217,9 @@ class PetApi:
_header_params['Content-Type'] = _content_types_list _header_params['Content-Type'] = _content_types_list
# authentication setting # authentication setting
_auth_settings = ['petstore_auth'] # noqa: E501 _auth_settings: List[str] = ['petstore_auth'] # noqa: E501
_response_types_map = { _response_types_map: Dict[str, Optional[str]] = {
'200': "ApiResponse", '200': "ApiResponse",
} }

View File

@@ -17,6 +17,7 @@ import io
import warnings import warnings
from pydantic import validate_call, ValidationError from pydantic import validate_call, ValidationError
from typing import Dict, List, Optional, Tuple
from pydantic import Field from pydantic import Field
from typing_extensions import Annotated from typing_extensions import Annotated
@@ -126,27 +127,27 @@ class StoreApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
if _params['order_id'] is not None: if _params['order_id'] is not None:
_path_params['order_id'] = _params['order_id'] _path_params['order_id'] = _params['order_id']
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = {} _response_types_map: Dict[str, Optional[str]] = {}
return await self.api_client.call_api( return await self.api_client.call_api(
'/store/order/{order_id}', 'DELETE', '/store/order/{order_id}', 'DELETE',
@@ -239,18 +240,18 @@ class StoreApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
# set the HTTP header `Accept` # set the HTTP header `Accept`
@@ -258,9 +259,9 @@ class StoreApi:
['application/json']) # noqa: E501 ['application/json']) # noqa: E501
# authentication setting # authentication setting
_auth_settings = ['api_key'] # noqa: E501 _auth_settings: List[str] = ['api_key'] # noqa: E501
_response_types_map = { _response_types_map: Dict[str, Optional[str]] = {
'200': "Dict[str, int]", '200': "Dict[str, int]",
} }
@@ -360,21 +361,21 @@ class StoreApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
if _params['order_id'] is not None: if _params['order_id'] is not None:
_path_params['order_id'] = _params['order_id'] _path_params['order_id'] = _params['order_id']
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
# set the HTTP header `Accept` # set the HTTP header `Accept`
@@ -382,9 +383,9 @@ class StoreApi:
['application/xml', 'application/json']) # noqa: E501 ['application/xml', 'application/json']) # noqa: E501
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = { _response_types_map: Dict[str, Optional[str]] = {
'200': "Order", '200': "Order",
'400': None, '400': None,
'404': None, '404': None,
@@ -486,18 +487,18 @@ class StoreApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
if _params['order'] is not None: if _params['order'] is not None:
@@ -515,9 +516,9 @@ class StoreApi:
_header_params['Content-Type'] = _content_types_list _header_params['Content-Type'] = _content_types_list
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = { _response_types_map: Dict[str, Optional[str]] = {
'200': "Order", '200': "Order",
'400': None, '400': None,
} }

View File

@@ -17,6 +17,7 @@ import io
import warnings import warnings
from pydantic import validate_call, ValidationError from pydantic import validate_call, ValidationError
from typing import Dict, List, Optional, Tuple
from pydantic import Field from pydantic import Field
from typing_extensions import Annotated from typing_extensions import Annotated
@@ -140,18 +141,18 @@ class UserApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
if _params['user'] is not None: if _params['user'] is not None:
@@ -165,9 +166,9 @@ class UserApi:
_header_params['Content-Type'] = _content_types_list _header_params['Content-Type'] = _content_types_list
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = {} _response_types_map: Dict[str, Optional[str]] = {}
return await self.api_client.call_api( return await self.api_client.call_api(
'/user', 'POST', '/user', 'POST',
@@ -266,18 +267,18 @@ class UserApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
if _params['user'] is not None: if _params['user'] is not None:
@@ -291,9 +292,9 @@ class UserApi:
_header_params['Content-Type'] = _content_types_list _header_params['Content-Type'] = _content_types_list
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = {} _response_types_map: Dict[str, Optional[str]] = {}
return await self.api_client.call_api( return await self.api_client.call_api(
'/user/createWithArray', 'POST', '/user/createWithArray', 'POST',
@@ -391,18 +392,18 @@ class UserApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
if _params['user'] is not None: if _params['user'] is not None:
@@ -416,9 +417,9 @@ class UserApi:
_header_params['Content-Type'] = _content_types_list _header_params['Content-Type'] = _content_types_list
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = {} _response_types_map: Dict[str, Optional[str]] = {}
return await self.api_client.call_api( return await self.api_client.call_api(
'/user/createWithList', 'POST', '/user/createWithList', 'POST',
@@ -516,27 +517,27 @@ class UserApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
if _params['username'] is not None: if _params['username'] is not None:
_path_params['username'] = _params['username'] _path_params['username'] = _params['username']
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = {} _response_types_map: Dict[str, Optional[str]] = {}
return await self.api_client.call_api( return await self.api_client.call_api(
'/user/{username}', 'DELETE', '/user/{username}', 'DELETE',
@@ -634,21 +635,21 @@ class UserApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
if _params['username'] is not None: if _params['username'] is not None:
_path_params['username'] = _params['username'] _path_params['username'] = _params['username']
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
# set the HTTP header `Accept` # set the HTTP header `Accept`
@@ -656,9 +657,9 @@ class UserApi:
['application/xml', 'application/json']) # noqa: E501 ['application/xml', 'application/json']) # noqa: E501
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = { _response_types_map: Dict[str, Optional[str]] = {
'200': "User", '200': "User",
'400': None, '400': None,
'404': None, '404': None,
@@ -765,13 +766,13 @@ class UserApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
if _params.get('username') is not None: # noqa: E501 if _params.get('username') is not None: # noqa: E501
_query_params.append(('username', _params['username'])) _query_params.append(('username', _params['username']))
@@ -781,8 +782,8 @@ class UserApi:
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
# set the HTTP header `Accept` # set the HTTP header `Accept`
@@ -790,9 +791,9 @@ class UserApi:
['application/xml', 'application/json']) # noqa: E501 ['application/xml', 'application/json']) # noqa: E501
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = { _response_types_map: Dict[str, Optional[str]] = {
'200': "str", '200': "str",
'400': None, '400': None,
} }
@@ -888,24 +889,24 @@ class UserApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = {} _response_types_map: Dict[str, Optional[str]] = {}
return await self.api_client.call_api( return await self.api_client.call_api(
'/user/logout', 'GET', '/user/logout', 'GET',
@@ -1008,21 +1009,21 @@ class UserApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
if _params['username'] is not None: if _params['username'] is not None:
_path_params['username'] = _params['username'] _path_params['username'] = _params['username']
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
if _params['user'] is not None: if _params['user'] is not None:
@@ -1036,9 +1037,9 @@ class UserApi:
_header_params['Content-Type'] = _content_types_list _header_params['Content-Type'] = _content_types_list
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = {} _response_types_map: Dict[str, Optional[str]] = {}
return await self.api_client.call_api( return await self.api_client.call_api(
'/user/{username}', 'PUT', '/user/{username}', 'PUT',

View File

@@ -17,6 +17,7 @@ import io
import warnings import warnings
from pydantic import validate_call, ValidationError from pydantic import validate_call, ValidationError
from typing import Dict, List, Optional, Tuple
from pydantic import Field from pydantic import Field
from typing_extensions import Annotated from typing_extensions import Annotated
@@ -137,18 +138,18 @@ class AnotherFakeApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
if _params['client'] is not None: if _params['client'] is not None:
@@ -166,9 +167,9 @@ class AnotherFakeApi:
_header_params['Content-Type'] = _content_types_list _header_params['Content-Type'] = _content_types_list
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = { _response_types_map: Dict[str, Optional[str]] = {
'200': "Client", '200': "Client",
} }

View File

@@ -17,6 +17,7 @@ import io
import warnings import warnings
from pydantic import validate_call, ValidationError from pydantic import validate_call, ValidationError
from typing import Dict, List, Optional, Tuple
from petstore_api.models.foo_get_default_response import FooGetDefaultResponse from petstore_api.models.foo_get_default_response import FooGetDefaultResponse
@@ -128,18 +129,18 @@ class DefaultApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
# set the HTTP header `Accept` # set the HTTP header `Accept`
@@ -147,9 +148,9 @@ class DefaultApi:
['application/json']) # noqa: E501 ['application/json']) # noqa: E501
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = { _response_types_map: Dict[str, Optional[str]] = {
} }
return self.api_client.call_api( return self.api_client.call_api(

View File

@@ -17,6 +17,7 @@ import io
import warnings import warnings
from pydantic import validate_call, ValidationError from pydantic import validate_call, ValidationError
from typing import Dict, List, Optional, Tuple
from pydantic import Field from pydantic import Field
from typing_extensions import Annotated from typing_extensions import Annotated
@@ -150,18 +151,18 @@ class FakeApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
if _params['body'] is not None: if _params['body'] is not None:
@@ -175,9 +176,9 @@ class FakeApi:
_header_params['Content-Type'] = _content_types_list _header_params['Content-Type'] = _content_types_list
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = {} _response_types_map: Dict[str, Optional[str]] = {}
return self.api_client.call_api( return self.api_client.call_api(
'/fake/any_type_body', 'POST', '/fake/any_type_body', 'POST',
@@ -289,27 +290,27 @@ class FakeApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
if _params.get('enum_ref') is not None: # noqa: E501 if _params.get('enum_ref') is not None: # noqa: E501
_query_params.append(('enum_ref', _params['enum_ref'].value)) _query_params.append(('enum_ref', _params['enum_ref'].value))
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = {} _response_types_map: Dict[str, Optional[str]] = {}
return self.api_client.call_api( return self.api_client.call_api(
'/fake/enum_ref_query_parameter', 'GET', '/fake/enum_ref_query_parameter', 'GET',
@@ -416,18 +417,18 @@ class FakeApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
# set the HTTP header `Accept` # set the HTTP header `Accept`
@@ -435,9 +436,9 @@ class FakeApi:
['application/json']) # noqa: E501 ['application/json']) # noqa: E501
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = { _response_types_map: Dict[str, Optional[str]] = {
'200': "HealthCheckResult", '200': "HealthCheckResult",
} }
@@ -561,13 +562,13 @@ class FakeApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
if _params.get('query_1') is not None: # noqa: E501 if _params.get('query_1') is not None: # noqa: E501
_query_params.append(('query_1', _params['query_1'])) _query_params.append(('query_1', _params['query_1']))
@@ -577,8 +578,8 @@ class FakeApi:
_header_params['header_1'] = _params['header_1'] _header_params['header_1'] = _params['header_1']
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
if _params['pet'] is not None: if _params['pet'] is not None:
@@ -592,9 +593,9 @@ class FakeApi:
_header_params['Content-Type'] = _content_types_list _header_params['Content-Type'] = _content_types_list
# authentication setting # authentication setting
_auth_settings = ['http_signature_test'] # noqa: E501 _auth_settings: List[str] = ['http_signature_test'] # noqa: E501
_response_types_map = {} _response_types_map: Dict[str, Optional[str]] = {}
return self.api_client.call_api( return self.api_client.call_api(
'/fake/http-signature-test', 'GET', '/fake/http-signature-test', 'GET',
@@ -708,18 +709,18 @@ class FakeApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
if _params['body'] is not None: if _params['body'] is not None:
@@ -737,9 +738,9 @@ class FakeApi:
_header_params['Content-Type'] = _content_types_list _header_params['Content-Type'] = _content_types_list
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = { _response_types_map: Dict[str, Optional[str]] = {
'200': "bool", '200': "bool",
} }
@@ -855,18 +856,18 @@ class FakeApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
if _params['outer_composite'] is not None: if _params['outer_composite'] is not None:
@@ -884,9 +885,9 @@ class FakeApi:
_header_params['Content-Type'] = _content_types_list _header_params['Content-Type'] = _content_types_list
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = { _response_types_map: Dict[str, Optional[str]] = {
'200': "OuterComposite", '200': "OuterComposite",
} }
@@ -1002,18 +1003,18 @@ class FakeApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
if _params['body'] is not None: if _params['body'] is not None:
@@ -1031,9 +1032,9 @@ class FakeApi:
_header_params['Content-Type'] = _content_types_list _header_params['Content-Type'] = _content_types_list
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = { _response_types_map: Dict[str, Optional[str]] = {
'200': "float", '200': "float",
} }
@@ -1149,18 +1150,18 @@ class FakeApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
if _params['body'] is not None: if _params['body'] is not None:
@@ -1178,9 +1179,9 @@ class FakeApi:
_header_params['Content-Type'] = _content_types_list _header_params['Content-Type'] = _content_types_list
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = { _response_types_map: Dict[str, Optional[str]] = {
'200': "str", '200': "str",
} }
@@ -1296,18 +1297,18 @@ class FakeApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
if _params['outer_object_with_enum_property'] is not None: if _params['outer_object_with_enum_property'] is not None:
@@ -1325,9 +1326,9 @@ class FakeApi:
_header_params['Content-Type'] = _content_types_list _header_params['Content-Type'] = _content_types_list
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = { _response_types_map: Dict[str, Optional[str]] = {
'200': "OuterObjectWithEnumProperty", '200': "OuterObjectWithEnumProperty",
} }
@@ -1436,18 +1437,18 @@ class FakeApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
# set the HTTP header `Accept` # set the HTTP header `Accept`
@@ -1455,9 +1456,9 @@ class FakeApi:
['application/json']) # noqa: E501 ['application/json']) # noqa: E501
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = { _response_types_map: Dict[str, Optional[str]] = {
'200': "List[List[Tag]]", '200': "List[List[Tag]]",
} }
@@ -1571,27 +1572,27 @@ class FakeApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
if _params.get('uuid_example') is not None: # noqa: E501 if _params.get('uuid_example') is not None: # noqa: E501
_query_params.append(('uuid_example', _params['uuid_example'])) _query_params.append(('uuid_example', _params['uuid_example']))
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = {} _response_types_map: Dict[str, Optional[str]] = {}
return self.api_client.call_api( return self.api_client.call_api(
'/fake/uuid_example', 'GET', '/fake/uuid_example', 'GET',
@@ -1705,18 +1706,18 @@ class FakeApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
if _params['body'] is not None: if _params['body'] is not None:
@@ -1735,9 +1736,9 @@ class FakeApi:
_header_params['Content-Type'] = _content_types_list _header_params['Content-Type'] = _content_types_list
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = {} _response_types_map: Dict[str, Optional[str]] = {}
return self.api_client.call_api( return self.api_client.call_api(
'/fake/body-with-binary', 'PUT', '/fake/body-with-binary', 'PUT',
@@ -1851,18 +1852,18 @@ class FakeApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
if _params['file_schema_test_class'] is not None: if _params['file_schema_test_class'] is not None:
@@ -1876,9 +1877,9 @@ class FakeApi:
_header_params['Content-Type'] = _content_types_list _header_params['Content-Type'] = _content_types_list
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = {} _response_types_map: Dict[str, Optional[str]] = {}
return self.api_client.call_api( return self.api_client.call_api(
'/fake/body-with-file-schema', 'PUT', '/fake/body-with-file-schema', 'PUT',
@@ -1995,21 +1996,21 @@ class FakeApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
if _params.get('query') is not None: # noqa: E501 if _params.get('query') is not None: # noqa: E501
_query_params.append(('query', _params['query'])) _query_params.append(('query', _params['query']))
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
if _params['user'] is not None: if _params['user'] is not None:
@@ -2023,9 +2024,9 @@ class FakeApi:
_header_params['Content-Type'] = _content_types_list _header_params['Content-Type'] = _content_types_list
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = {} _response_types_map: Dict[str, Optional[str]] = {}
return self.api_client.call_api( return self.api_client.call_api(
'/fake/body-with-query-params', 'PUT', '/fake/body-with-query-params', 'PUT',
@@ -2139,18 +2140,18 @@ class FakeApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
if _params['client'] is not None: if _params['client'] is not None:
@@ -2168,9 +2169,9 @@ class FakeApi:
_header_params['Content-Type'] = _content_types_list _header_params['Content-Type'] = _content_types_list
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = { _response_types_map: Dict[str, Optional[str]] = {
'200': "Client", '200': "Client",
} }
@@ -2289,13 +2290,13 @@ class FakeApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
if _params.get('date_time_query') is not None: # noqa: E501 if _params.get('date_time_query') is not None: # noqa: E501
if isinstance(_params['date_time_query'], datetime): if isinstance(_params['date_time_query'], datetime):
_query_params.append(('date_time_query', _params['date_time_query'].strftime(self.api_client.configuration.datetime_format))) _query_params.append(('date_time_query', _params['date_time_query'].strftime(self.api_client.configuration.datetime_format)))
@@ -2308,14 +2309,14 @@ class FakeApi:
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = {} _response_types_map: Dict[str, Optional[str]] = {}
return self.api_client.call_api( return self.api_client.call_api(
'/fake/date-time-query-params', 'PUT', '/fake/date-time-query-params', 'PUT',
@@ -2499,18 +2500,18 @@ class FakeApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
if _params['integer'] is not None: if _params['integer'] is not None:
_form_params.append(('integer', _params['integer'])) _form_params.append(('integer', _params['integer']))
@@ -2566,9 +2567,9 @@ class FakeApi:
_header_params['Content-Type'] = _content_types_list _header_params['Content-Type'] = _content_types_list
# authentication setting # authentication setting
_auth_settings = ['http_basic_test'] # noqa: E501 _auth_settings: List[str] = ['http_basic_test'] # noqa: E501
_response_types_map = {} _response_types_map: Dict[str, Optional[str]] = {}
return self.api_client.call_api( return self.api_client.call_api(
'/fake', 'POST', '/fake', 'POST',
@@ -2707,13 +2708,13 @@ class FakeApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
if _params.get('required_string_group') is not None: # noqa: E501 if _params.get('required_string_group') is not None: # noqa: E501
_query_params.append(('required_string_group', _params['required_string_group'])) _query_params.append(('required_string_group', _params['required_string_group']))
@@ -2735,14 +2736,14 @@ class FakeApi:
_header_params['boolean_group'] = _params['boolean_group'] _header_params['boolean_group'] = _params['boolean_group']
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
# authentication setting # authentication setting
_auth_settings = ['bearer_test'] # noqa: E501 _auth_settings: List[str] = ['bearer_test'] # noqa: E501
_response_types_map = {} _response_types_map: Dict[str, Optional[str]] = {}
return self.api_client.call_api( return self.api_client.call_api(
'/fake', 'DELETE', '/fake', 'DELETE',
@@ -2856,18 +2857,18 @@ class FakeApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
if _params['request_body'] is not None: if _params['request_body'] is not None:
@@ -2881,9 +2882,9 @@ class FakeApi:
_header_params['Content-Type'] = _content_types_list _header_params['Content-Type'] = _content_types_list
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = {} _response_types_map: Dict[str, Optional[str]] = {}
return self.api_client.call_api( return self.api_client.call_api(
'/fake/inline-additionalProperties', 'POST', '/fake/inline-additionalProperties', 'POST',
@@ -2997,18 +2998,18 @@ class FakeApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
if _params['test_inline_freeform_additional_properties_request'] is not None: if _params['test_inline_freeform_additional_properties_request'] is not None:
@@ -3022,9 +3023,9 @@ class FakeApi:
_header_params['Content-Type'] = _content_types_list _header_params['Content-Type'] = _content_types_list
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = {} _response_types_map: Dict[str, Optional[str]] = {}
return self.api_client.call_api( return self.api_client.call_api(
'/fake/inline-freeform-additionalProperties', 'POST', '/fake/inline-freeform-additionalProperties', 'POST',
@@ -3143,18 +3144,18 @@ class FakeApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
if _params['param'] is not None: if _params['param'] is not None:
_form_params.append(('param', _params['param'])) _form_params.append(('param', _params['param']))
@@ -3171,9 +3172,9 @@ class FakeApi:
_header_params['Content-Type'] = _content_types_list _header_params['Content-Type'] = _content_types_list
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = {} _response_types_map: Dict[str, Optional[str]] = {}
return self.api_client.call_api( return self.api_client.call_api(
'/fake/jsonFormData', 'GET', '/fake/jsonFormData', 'GET',
@@ -3317,13 +3318,13 @@ class FakeApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
if _params.get('pipe') is not None: # noqa: E501 if _params.get('pipe') is not None: # noqa: E501
_query_params.append(('pipe', _params['pipe'])) _query_params.append(('pipe', _params['pipe']))
_collection_formats['pipe'] = 'pipes' _collection_formats['pipe'] = 'pipes'
@@ -3353,14 +3354,14 @@ class FakeApi:
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = {} _response_types_map: Dict[str, Optional[str]] = {}
return self.api_client.call_api( return self.api_client.call_api(
'/fake/test-query-parameters', 'PUT', '/fake/test-query-parameters', 'PUT',

View File

@@ -17,6 +17,7 @@ import io
import warnings import warnings
from pydantic import validate_call, ValidationError from pydantic import validate_call, ValidationError
from typing import Dict, List, Optional, Tuple
from pydantic import Field from pydantic import Field
from typing_extensions import Annotated from typing_extensions import Annotated
@@ -137,18 +138,18 @@ class FakeClassnameTags123Api:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
if _params['client'] is not None: if _params['client'] is not None:
@@ -166,9 +167,9 @@ class FakeClassnameTags123Api:
_header_params['Content-Type'] = _content_types_list _header_params['Content-Type'] = _content_types_list
# authentication setting # authentication setting
_auth_settings = ['api_key_query'] # noqa: E501 _auth_settings: List[str] = ['api_key_query'] # noqa: E501
_response_types_map = { _response_types_map: Dict[str, Optional[str]] = {
'200': "Client", '200': "Client",
} }

View File

@@ -17,6 +17,7 @@ import io
import warnings import warnings
from pydantic import validate_call, ValidationError from pydantic import validate_call, ValidationError
from typing import Dict, List, Optional, Tuple
from pydantic import Field from pydantic import Field
from typing_extensions import Annotated from typing_extensions import Annotated
@@ -142,18 +143,18 @@ class PetApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
if _params['pet'] is not None: if _params['pet'] is not None:
@@ -167,9 +168,9 @@ class PetApi:
_header_params['Content-Type'] = _content_types_list _header_params['Content-Type'] = _content_types_list
# authentication setting # authentication setting
_auth_settings = ['petstore_auth', 'http_signature_test'] # noqa: E501 _auth_settings: List[str] = ['petstore_auth', 'http_signature_test'] # noqa: E501
_response_types_map = {} _response_types_map: Dict[str, Optional[str]] = {}
return self.api_client.call_api( return self.api_client.call_api(
'/pet', 'POST', '/pet', 'POST',
@@ -288,30 +289,30 @@ class PetApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
if _params['pet_id'] is not None: if _params['pet_id'] is not None:
_path_params['petId'] = _params['pet_id'] _path_params['petId'] = _params['pet_id']
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
if _params['api_key'] is not None: if _params['api_key'] is not None:
_header_params['api_key'] = _params['api_key'] _header_params['api_key'] = _params['api_key']
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
# authentication setting # authentication setting
_auth_settings = ['petstore_auth'] # noqa: E501 _auth_settings: List[str] = ['petstore_auth'] # noqa: E501
_response_types_map = {} _response_types_map: Dict[str, Optional[str]] = {}
return self.api_client.call_api( return self.api_client.call_api(
'/pet/{petId}', 'DELETE', '/pet/{petId}', 'DELETE',
@@ -425,13 +426,13 @@ class PetApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
if _params.get('status') is not None: # noqa: E501 if _params.get('status') is not None: # noqa: E501
_query_params.append(('status', _params['status'])) _query_params.append(('status', _params['status']))
_collection_formats['status'] = 'csv' _collection_formats['status'] = 'csv'
@@ -439,8 +440,8 @@ class PetApi:
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
# set the HTTP header `Accept` # set the HTTP header `Accept`
@@ -448,9 +449,9 @@ class PetApi:
['application/xml', 'application/json']) # noqa: E501 ['application/xml', 'application/json']) # noqa: E501
# authentication setting # authentication setting
_auth_settings = ['petstore_auth', 'http_signature_test'] # noqa: E501 _auth_settings: List[str] = ['petstore_auth', 'http_signature_test'] # noqa: E501
_response_types_map = { _response_types_map: Dict[str, Optional[str]] = {
'200': "List[Pet]", '200': "List[Pet]",
'400': None, '400': None,
} }
@@ -569,13 +570,13 @@ class PetApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
if _params.get('tags') is not None: # noqa: E501 if _params.get('tags') is not None: # noqa: E501
_query_params.append(('tags', _params['tags'])) _query_params.append(('tags', _params['tags']))
_collection_formats['tags'] = 'csv' _collection_formats['tags'] = 'csv'
@@ -583,8 +584,8 @@ class PetApi:
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
# set the HTTP header `Accept` # set the HTTP header `Accept`
@@ -592,9 +593,9 @@ class PetApi:
['application/xml', 'application/json']) # noqa: E501 ['application/xml', 'application/json']) # noqa: E501
# authentication setting # authentication setting
_auth_settings = ['petstore_auth', 'http_signature_test'] # noqa: E501 _auth_settings: List[str] = ['petstore_auth', 'http_signature_test'] # noqa: E501
_response_types_map = { _response_types_map: Dict[str, Optional[str]] = {
'200': "List[Pet]", '200': "List[Pet]",
'400': None, '400': None,
} }
@@ -711,21 +712,21 @@ class PetApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
if _params['pet_id'] is not None: if _params['pet_id'] is not None:
_path_params['petId'] = _params['pet_id'] _path_params['petId'] = _params['pet_id']
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
# set the HTTP header `Accept` # set the HTTP header `Accept`
@@ -733,9 +734,9 @@ class PetApi:
['application/xml', 'application/json']) # noqa: E501 ['application/xml', 'application/json']) # noqa: E501
# authentication setting # authentication setting
_auth_settings = ['api_key'] # noqa: E501 _auth_settings: List[str] = ['api_key'] # noqa: E501
_response_types_map = { _response_types_map: Dict[str, Optional[str]] = {
'200': "Pet", '200': "Pet",
'400': None, '400': None,
'404': None, '404': None,
@@ -853,18 +854,18 @@ class PetApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
if _params['pet'] is not None: if _params['pet'] is not None:
@@ -878,9 +879,9 @@ class PetApi:
_header_params['Content-Type'] = _content_types_list _header_params['Content-Type'] = _content_types_list
# authentication setting # authentication setting
_auth_settings = ['petstore_auth', 'http_signature_test'] # noqa: E501 _auth_settings: List[str] = ['petstore_auth', 'http_signature_test'] # noqa: E501
_response_types_map = {} _response_types_map: Dict[str, Optional[str]] = {}
return self.api_client.call_api( return self.api_client.call_api(
'/pet', 'PUT', '/pet', 'PUT',
@@ -1004,21 +1005,21 @@ class PetApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
if _params['pet_id'] is not None: if _params['pet_id'] is not None:
_path_params['petId'] = _params['pet_id'] _path_params['petId'] = _params['pet_id']
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
if _params['name'] is not None: if _params['name'] is not None:
_form_params.append(('name', _params['name'])) _form_params.append(('name', _params['name']))
@@ -1035,9 +1036,9 @@ class PetApi:
_header_params['Content-Type'] = _content_types_list _header_params['Content-Type'] = _content_types_list
# authentication setting # authentication setting
_auth_settings = ['petstore_auth'] # noqa: E501 _auth_settings: List[str] = ['petstore_auth'] # noqa: E501
_response_types_map = {} _response_types_map: Dict[str, Optional[str]] = {}
return self.api_client.call_api( return self.api_client.call_api(
'/pet/{petId}', 'POST', '/pet/{petId}', 'POST',
@@ -1161,21 +1162,21 @@ class PetApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
if _params['pet_id'] is not None: if _params['pet_id'] is not None:
_path_params['petId'] = _params['pet_id'] _path_params['petId'] = _params['pet_id']
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
if _params['additional_metadata'] is not None: if _params['additional_metadata'] is not None:
_form_params.append(('additionalMetadata', _params['additional_metadata'])) _form_params.append(('additionalMetadata', _params['additional_metadata']))
@@ -1196,9 +1197,9 @@ class PetApi:
_header_params['Content-Type'] = _content_types_list _header_params['Content-Type'] = _content_types_list
# authentication setting # authentication setting
_auth_settings = ['petstore_auth'] # noqa: E501 _auth_settings: List[str] = ['petstore_auth'] # noqa: E501
_response_types_map = { _response_types_map: Dict[str, Optional[str]] = {
'200': "ApiResponse", '200': "ApiResponse",
} }
@@ -1324,21 +1325,21 @@ class PetApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
if _params['pet_id'] is not None: if _params['pet_id'] is not None:
_path_params['petId'] = _params['pet_id'] _path_params['petId'] = _params['pet_id']
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
if _params['additional_metadata'] is not None: if _params['additional_metadata'] is not None:
_form_params.append(('additionalMetadata', _params['additional_metadata'])) _form_params.append(('additionalMetadata', _params['additional_metadata']))
@@ -1359,9 +1360,9 @@ class PetApi:
_header_params['Content-Type'] = _content_types_list _header_params['Content-Type'] = _content_types_list
# authentication setting # authentication setting
_auth_settings = ['petstore_auth'] # noqa: E501 _auth_settings: List[str] = ['petstore_auth'] # noqa: E501
_response_types_map = { _response_types_map: Dict[str, Optional[str]] = {
'200': "ApiResponse", '200': "ApiResponse",
} }

View File

@@ -17,6 +17,7 @@ import io
import warnings import warnings
from pydantic import validate_call, ValidationError from pydantic import validate_call, ValidationError
from typing import Dict, List, Optional, Tuple
from pydantic import Field from pydantic import Field
from typing_extensions import Annotated from typing_extensions import Annotated
@@ -141,27 +142,27 @@ class StoreApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
if _params['order_id'] is not None: if _params['order_id'] is not None:
_path_params['order_id'] = _params['order_id'] _path_params['order_id'] = _params['order_id']
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = {} _response_types_map: Dict[str, Optional[str]] = {}
return self.api_client.call_api( return self.api_client.call_api(
'/store/order/{order_id}', 'DELETE', '/store/order/{order_id}', 'DELETE',
@@ -270,18 +271,18 @@ class StoreApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
# set the HTTP header `Accept` # set the HTTP header `Accept`
@@ -289,9 +290,9 @@ class StoreApi:
['application/json']) # noqa: E501 ['application/json']) # noqa: E501
# authentication setting # authentication setting
_auth_settings = ['api_key'] # noqa: E501 _auth_settings: List[str] = ['api_key'] # noqa: E501
_response_types_map = { _response_types_map: Dict[str, Optional[str]] = {
'200': "Dict[str, int]", '200': "Dict[str, int]",
} }
@@ -407,21 +408,21 @@ class StoreApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
if _params['order_id'] is not None: if _params['order_id'] is not None:
_path_params['order_id'] = _params['order_id'] _path_params['order_id'] = _params['order_id']
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
# set the HTTP header `Accept` # set the HTTP header `Accept`
@@ -429,9 +430,9 @@ class StoreApi:
['application/xml', 'application/json']) # noqa: E501 ['application/xml', 'application/json']) # noqa: E501
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = { _response_types_map: Dict[str, Optional[str]] = {
'200': "Order", '200': "Order",
'400': None, '400': None,
'404': None, '404': None,
@@ -549,18 +550,18 @@ class StoreApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
if _params['order'] is not None: if _params['order'] is not None:
@@ -578,9 +579,9 @@ class StoreApi:
_header_params['Content-Type'] = _content_types_list _header_params['Content-Type'] = _content_types_list
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = { _response_types_map: Dict[str, Optional[str]] = {
'200': "Order", '200': "Order",
'400': None, '400': None,
} }

View File

@@ -17,6 +17,7 @@ import io
import warnings import warnings
from pydantic import validate_call, ValidationError from pydantic import validate_call, ValidationError
from typing import Dict, List, Optional, Tuple
from pydantic import Field from pydantic import Field
from typing_extensions import Annotated from typing_extensions import Annotated
@@ -155,18 +156,18 @@ class UserApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
if _params['user'] is not None: if _params['user'] is not None:
@@ -180,9 +181,9 @@ class UserApi:
_header_params['Content-Type'] = _content_types_list _header_params['Content-Type'] = _content_types_list
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = {} _response_types_map: Dict[str, Optional[str]] = {}
return self.api_client.call_api( return self.api_client.call_api(
'/user', 'POST', '/user', 'POST',
@@ -297,18 +298,18 @@ class UserApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
if _params['user'] is not None: if _params['user'] is not None:
@@ -322,9 +323,9 @@ class UserApi:
_header_params['Content-Type'] = _content_types_list _header_params['Content-Type'] = _content_types_list
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = {} _response_types_map: Dict[str, Optional[str]] = {}
return self.api_client.call_api( return self.api_client.call_api(
'/user/createWithArray', 'POST', '/user/createWithArray', 'POST',
@@ -438,18 +439,18 @@ class UserApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
if _params['user'] is not None: if _params['user'] is not None:
@@ -463,9 +464,9 @@ class UserApi:
_header_params['Content-Type'] = _content_types_list _header_params['Content-Type'] = _content_types_list
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = {} _response_types_map: Dict[str, Optional[str]] = {}
return self.api_client.call_api( return self.api_client.call_api(
'/user/createWithList', 'POST', '/user/createWithList', 'POST',
@@ -579,27 +580,27 @@ class UserApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
if _params['username'] is not None: if _params['username'] is not None:
_path_params['username'] = _params['username'] _path_params['username'] = _params['username']
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = {} _response_types_map: Dict[str, Optional[str]] = {}
return self.api_client.call_api( return self.api_client.call_api(
'/user/{username}', 'DELETE', '/user/{username}', 'DELETE',
@@ -713,21 +714,21 @@ class UserApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
if _params['username'] is not None: if _params['username'] is not None:
_path_params['username'] = _params['username'] _path_params['username'] = _params['username']
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
# set the HTTP header `Accept` # set the HTTP header `Accept`
@@ -735,9 +736,9 @@ class UserApi:
['application/xml', 'application/json']) # noqa: E501 ['application/xml', 'application/json']) # noqa: E501
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = { _response_types_map: Dict[str, Optional[str]] = {
'200': "User", '200': "User",
'400': None, '400': None,
'404': None, '404': None,
@@ -860,13 +861,13 @@ class UserApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
if _params.get('username') is not None: # noqa: E501 if _params.get('username') is not None: # noqa: E501
_query_params.append(('username', _params['username'])) _query_params.append(('username', _params['username']))
@@ -876,8 +877,8 @@ class UserApi:
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
# set the HTTP header `Accept` # set the HTTP header `Accept`
@@ -885,9 +886,9 @@ class UserApi:
['application/xml', 'application/json']) # noqa: E501 ['application/xml', 'application/json']) # noqa: E501
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = { _response_types_map: Dict[str, Optional[str]] = {
'200': "str", '200': "str",
'400': None, '400': None,
} }
@@ -999,24 +1000,24 @@ class UserApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = {} _response_types_map: Dict[str, Optional[str]] = {}
return self.api_client.call_api( return self.api_client.call_api(
'/user/logout', 'GET', '/user/logout', 'GET',
@@ -1135,21 +1136,21 @@ class UserApi:
_params[_key] = _val _params[_key] = _val
del _params['kwargs'] del _params['kwargs']
_collection_formats = {} _collection_formats: Dict[str, str] = {}
# process the path parameters # process the path parameters
_path_params = {} _path_params: Dict[str, str] = {}
if _params['username'] is not None: if _params['username'] is not None:
_path_params['username'] = _params['username'] _path_params['username'] = _params['username']
# process the query parameters # process the query parameters
_query_params = [] _query_params: List[Tuple[str, str]] = []
# process the header parameters # process the header parameters
_header_params = dict(_params.get('_headers', {})) _header_params = dict(_params.get('_headers', {}))
# process the form parameters # process the form parameters
_form_params = [] _form_params: List[Tuple[str, str]] = []
_files = {} _files: Dict[str, str] = {}
# process the body parameter # process the body parameter
_body_params = None _body_params = None
if _params['user'] is not None: if _params['user'] is not None:
@@ -1163,9 +1164,9 @@ class UserApi:
_header_params['Content-Type'] = _content_types_list _header_params['Content-Type'] = _content_types_list
# authentication setting # authentication setting
_auth_settings = [] # noqa: E501 _auth_settings: List[str] = [] # noqa: E501
_response_types_map = {} _response_types_map: Dict[str, Optional[str]] = {}
return self.api_client.call_api( return self.api_client.call_api(
'/user/{username}', 'PUT', '/user/{username}', 'PUT',