From e79f561527260a2666940231bf049884d0868f8c Mon Sep 17 00:00:00 2001 From: johnthagen Date: Wed, 3 Jan 2024 07:02:31 -0500 Subject: [PATCH 1/3] Export Unset types in types.py --- openapi_python_client/templates/types.py.jinja | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openapi_python_client/templates/types.py.jinja b/openapi_python_client/templates/types.py.jinja index e49ec9ca2..cc151acb3 100644 --- a/openapi_python_client/templates/types.py.jinja +++ b/openapi_python_client/templates/types.py.jinja @@ -42,4 +42,4 @@ class Response(Generic[T]): parsed: Optional[T] -__all__ = ["File", "Response", "FileJsonType"] +__all__ = ["File", "Response", "FileJsonType", "Unset", "UNSET"] From c4b0022648d06a7311a4e8e1a797cc945b3f7a60 Mon Sep 17 00:00:00 2001 From: johnthagen Date: Wed, 3 Jan 2024 07:14:17 -0500 Subject: [PATCH 2/3] Fix end to end tests --- end_to_end_tests/golden-record/my_test_api_client/types.py | 2 +- .../test-3-1-golden-record/test_3_1_features_client/types.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/end_to_end_tests/golden-record/my_test_api_client/types.py b/end_to_end_tests/golden-record/my_test_api_client/types.py index 15700b858..dbdcc5d43 100644 --- a/end_to_end_tests/golden-record/my_test_api_client/types.py +++ b/end_to_end_tests/golden-record/my_test_api_client/types.py @@ -41,4 +41,4 @@ class Response(Generic[T]): parsed: Optional[T] -__all__ = ["File", "Response", "FileJsonType"] +__all__ = ["File", "Response", "FileJsonType", "Unset", "UNSET"] diff --git a/end_to_end_tests/test-3-1-golden-record/test_3_1_features_client/types.py b/end_to_end_tests/test-3-1-golden-record/test_3_1_features_client/types.py index 15700b858..dbdcc5d43 100644 --- a/end_to_end_tests/test-3-1-golden-record/test_3_1_features_client/types.py +++ b/end_to_end_tests/test-3-1-golden-record/test_3_1_features_client/types.py @@ -41,4 +41,4 @@ class Response(Generic[T]): parsed: Optional[T] -__all__ = ["File", "Response", "FileJsonType"] +__all__ = ["File", "Response", "FileJsonType", "Unset", "UNSET"] From 2eba87762ab984f85fdf8686bed6de322cd52282 Mon Sep 17 00:00:00 2001 From: johnthagen Date: Wed, 3 Jan 2024 07:16:40 -0500 Subject: [PATCH 3/3] Fix integration test --- integration-tests/integration_tests/types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration-tests/integration_tests/types.py b/integration-tests/integration_tests/types.py index 15700b858..dbdcc5d43 100644 --- a/integration-tests/integration_tests/types.py +++ b/integration-tests/integration_tests/types.py @@ -41,4 +41,4 @@ class Response(Generic[T]): parsed: Optional[T] -__all__ = ["File", "Response", "FileJsonType"] +__all__ = ["File", "Response", "FileJsonType", "Unset", "UNSET"]