Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,27 @@
from unit_test_api import schemas


@dataclasses.dataclass
class ApiResponse:
response: urllib3.HTTPResponse
body: typing.Union[schemas.Unset, schemas.OUTPUT_BASE_TYPES] = schemas.unset
headers: typing.Union[schemas.Unset, typing.Mapping[str, schemas.OUTPUT_BASE_TYPES]] = schemas.unset
def __init__(
self,
*,
response: urllib3.HTTPResponse,
body: typing.Union[schemas.Unset, schemas.OUTPUT_BASE_TYPES] = schemas.unset,
headers: typing.Union[schemas.Unset, typing.Mapping[str, schemas.OUTPUT_BASE_TYPES]] = schemas.unset
):
self.response = response
self.body = body
self. headers = headers


@dataclasses.dataclass
class ApiResponseWithoutDeserialization(ApiResponse):
response: urllib3.HTTPResponse
body: schemas.Unset = schemas.unset
headers: schemas.Unset = schemas.unset
def __init__(
self,
*,
response: urllib3.HTTPResponse,
body: schemas.Unset = schemas.unset,
headers: schemas.Unset = schemas.unset
):
self.response = response
self.body = body
self. headers = headers
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ def __new__(
**kwargs: bool,
):
arg_: typing.Dict[str, typing.Any] = {}
for key, val in (
for key_, val in (
("foo", foo),
("bar", bar),
):
if isinstance(val, schemas.Unset):
continue
arg_[key] = val
arg_[key_] = val
arg_.update(kwargs)
used_arg_ = typing.cast(AdditionalpropertiesAllowsASchemaWhichShouldValidateDictInput, arg_)
return AdditionalpropertiesAllowsASchemaWhichShouldValidate.validate(used_arg_, configuration=configuration_)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ def __new__(
**kwargs: schemas.INPUT_TYPES_ALL,
):
arg_: typing.Dict[str, typing.Any] = {}
for key, val in (
for key_, val in (
("foo", foo),
("bar", bar),
):
if isinstance(val, schemas.Unset):
continue
arg_[key] = val
arg_[key_] = val
arg_.update(kwargs)
used_arg_ = typing.cast(AdditionalpropertiesAreAllowedByDefaultDictInput, arg_)
return AdditionalpropertiesAreAllowedByDefault.validate(used_arg_, configuration=configuration_)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ def __new__(
**kwargs: schemas.INPUT_TYPES_ALL,
):
arg_: typing.Dict[str, typing.Any] = {}
for key, val in (
for key_, val in (
("foo", foo),
):
if isinstance(val, schemas.Unset):
continue
arg_[key] = val
arg_[key_] = val
arg_.update(kwargs)
used_arg_ = typing.cast(_0DictInput, arg_)
return _0.validate(used_arg_, configuration=configuration_)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,12 @@ def __new__(
arg_: typing.Dict[str, typing.Any] = {
"bar": bar,
}
for key, val in (
for key_, val in (
("foo", foo),
):
if isinstance(val, schemas.Unset):
continue
arg_[key] = val
arg_[key_] = val
arg_.update(kwargs)
used_arg_ = typing.cast(EnumsInPropertiesDictInput, arg_)
return EnumsInProperties.validate(used_arg_, configuration=configuration_)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ def __new__(
**kwargs: schemas.INPUT_TYPES_ALL,
):
arg_: typing.Dict[str, typing.Any] = {}
for key, val in (
for key_, val in (
("foo", foo),
):
if isinstance(val, schemas.Unset):
continue
arg_[key] = val
arg_[key_] = val
arg_.update(kwargs)
used_arg_ = typing.cast(ForbiddenPropertyDictInput, arg_)
return ForbiddenProperty.validate(used_arg_, configuration=configuration_)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ def __new__(
**kwargs: schemas.INPUT_TYPES_ALL,
):
arg_: typing.Dict[str, typing.Any] = {}
for key, val in (
for key_, val in (
("bar", bar),
):
if isinstance(val, schemas.Unset):
continue
arg_[key] = val
arg_[key_] = val
arg_.update(kwargs)
used_arg_ = typing.cast(InvalidStringValueForDefaultDictInput, arg_)
return InvalidStringValueForDefault.validate(used_arg_, configuration=configuration_)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ def __new__(
**kwargs: schemas.INPUT_TYPES_ALL,
):
arg_: typing.Dict[str, typing.Any] = {}
for key, val in (
for key_, val in (
("foo", foo),
):
if isinstance(val, schemas.Unset):
continue
arg_[key] = val
arg_[key_] = val
arg_.update(kwargs)
used_arg_ = typing.cast(NotDictInput, arg_)
return _Not.validate(used_arg_, configuration=configuration_)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ def __new__(
**kwargs: schemas.INPUT_TYPES_ALL,
):
arg_: typing.Dict[str, typing.Any] = {}
for key, val in (
for key_, val in (
("foo", foo),
("bar", bar),
):
if isinstance(val, schemas.Unset):
continue
arg_[key] = val
arg_[key_] = val
arg_.update(kwargs)
used_arg_ = typing.cast(ObjectPropertiesValidationDictInput, arg_)
return ObjectPropertiesValidation.validate(used_arg_, configuration=configuration_)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ def __new__(
**kwargs: schemas.INPUT_TYPES_ALL,
):
arg_: typing.Dict[str, typing.Any] = {}
for key, val in (
for key_, val in (
("a", a),
):
if isinstance(val, schemas.Unset):
continue
arg_[key] = val
arg_[key_] = val
arg_.update(kwargs)
used_arg_ = typing.cast(RefInPropertyDictInput, arg_)
return RefInProperty.validate(used_arg_, configuration=configuration_)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ def __new__(
**kwargs: schemas.INPUT_TYPES_ALL,
):
arg_: typing.Dict[str, typing.Any] = {}
for key, val in (
for key_, val in (
("foo", foo),
):
if isinstance(val, schemas.Unset):
continue
arg_[key] = val
arg_[key_] = val
arg_.update(kwargs)
used_arg_ = typing.cast(RequiredDefaultValidationDictInput, arg_)
return RequiredDefaultValidation.validate(used_arg_, configuration=configuration_)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ def __new__(
arg_: typing.Dict[str, typing.Any] = {
"foo": foo,
}
for key, val in (
for key_, val in (
("bar", bar),
):
if isinstance(val, schemas.Unset):
continue
arg_[key] = val
arg_[key_] = val
arg_.update(kwargs)
used_arg_ = typing.cast(RequiredValidationDictInput, arg_)
return RequiredValidation.validate(used_arg_, configuration=configuration_)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ def __new__(
**kwargs: schemas.INPUT_TYPES_ALL,
):
arg_: typing.Dict[str, typing.Any] = {}
for key, val in (
for key_, val in (
("foo", foo),
):
if isinstance(val, schemas.Unset):
continue
arg_[key] = val
arg_[key_] = val
arg_.update(kwargs)
used_arg_ = typing.cast(RequiredWithEmptyArrayDictInput, arg_)
return RequiredWithEmptyArray.validate(used_arg_, configuration=configuration_)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ def __new__(
**kwargs: schemas.INPUT_TYPES_ALL,
):
arg_: typing.Dict[str, typing.Any] = {}
for key, val in (
for key_, val in (
("alpha", alpha),
):
if isinstance(val, schemas.Unset):
continue
arg_[key] = val
arg_[key_] = val
arg_.update(kwargs)
used_arg_ = typing.cast(TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingDictInput, arg_)
return TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.validate(used_arg_, configuration=configuration_)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,17 @@
from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary]


@dataclasses.dataclass
class ApiResponse(api_response.ApiResponse):
response: urllib3.HTTPResponse
body: schemas.Unset = schemas.unset
headers: schemas.Unset = schemas.unset
def __init__(
self,
*,
response: urllib3.HTTPResponse,
body: schemas.Unset = schemas.unset,
headers: schemas.Unset = schemas.unset
):
self.response = response
self.body = body
self.headers = headers


class ResponseFor200(api_client.OpenApiResponse[ApiResponse]):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,17 @@
from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary]


@dataclasses.dataclass
class ApiResponse(api_response.ApiResponse):
response: urllib3.HTTPResponse
body: schemas.Unset = schemas.unset
headers: schemas.Unset = schemas.unset
def __init__(
self,
*,
response: urllib3.HTTPResponse,
body: schemas.Unset = schemas.unset,
headers: schemas.Unset = schemas.unset
):
self.response = response
self.body = body
self.headers = headers


class ResponseFor200(api_client.OpenApiResponse[ApiResponse]):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,17 @@
from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary]


@dataclasses.dataclass
class ApiResponse(api_response.ApiResponse):
response: urllib3.HTTPResponse
body: schemas.Unset = schemas.unset
headers: schemas.Unset = schemas.unset
def __init__(
self,
*,
response: urllib3.HTTPResponse,
body: schemas.Unset = schemas.unset,
headers: schemas.Unset = schemas.unset
):
self.response = response
self.body = body
self.headers = headers


class ResponseFor200(api_client.OpenApiResponse[ApiResponse]):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,17 @@
from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary]


@dataclasses.dataclass
class ApiResponse(api_response.ApiResponse):
response: urllib3.HTTPResponse
body: schemas.Unset = schemas.unset
headers: schemas.Unset = schemas.unset
def __init__(
self,
*,
response: urllib3.HTTPResponse,
body: schemas.Unset = schemas.unset,
headers: schemas.Unset = schemas.unset
):
self.response = response
self.body = body
self.headers = headers


class ResponseFor200(api_client.OpenApiResponse[ApiResponse]):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,17 @@
from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary]


@dataclasses.dataclass
class ApiResponse(api_response.ApiResponse):
response: urllib3.HTTPResponse
body: schemas.Unset = schemas.unset
headers: schemas.Unset = schemas.unset
def __init__(
self,
*,
response: urllib3.HTTPResponse,
body: schemas.Unset = schemas.unset,
headers: schemas.Unset = schemas.unset
):
self.response = response
self.body = body
self.headers = headers


class ResponseFor200(api_client.OpenApiResponse[ApiResponse]):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,17 @@
from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary]


@dataclasses.dataclass
class ApiResponse(api_response.ApiResponse):
response: urllib3.HTTPResponse
body: schemas.Unset = schemas.unset
headers: schemas.Unset = schemas.unset
def __init__(
self,
*,
response: urllib3.HTTPResponse,
body: schemas.Unset = schemas.unset,
headers: schemas.Unset = schemas.unset
):
self.response = response
self.body = body
self.headers = headers


class ResponseFor200(api_client.OpenApiResponse[ApiResponse]):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,17 @@
from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary]


@dataclasses.dataclass
class ApiResponse(api_response.ApiResponse):
response: urllib3.HTTPResponse
body: schemas.Unset = schemas.unset
headers: schemas.Unset = schemas.unset
def __init__(
self,
*,
response: urllib3.HTTPResponse,
body: schemas.Unset = schemas.unset,
headers: schemas.Unset = schemas.unset
):
self.response = response
self.body = body
self.headers = headers


class ResponseFor200(api_client.OpenApiResponse[ApiResponse]):
Expand Down
Loading