Skip to content

Commit e53eab5

Browse files
authored
Merge branch 'main' into deleteWithBody
2 parents b58bffb + 19dd9d8 commit e53eab5

File tree

69 files changed

+1307
-98
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+1307
-98
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,18 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## 0.10.8
8+
9+
### Features
10+
11+
- New and improved docstrings in generated functions and classes [#503, #505, #551]. Thanks @rtaycher!
12+
- Support httpx 0.21.\* (#537)
13+
14+
### Fixes
15+
16+
- Basic types as JSON bodies and responses [#487 & #550]. Thanks @Gelbpunkt!
17+
- Relative paths to config files [#538 & #544]. Thanks to @motybz, @MalteBecker, & @abhinav-cashify!
18+
719
## 0.10.7
820

921
### Fixes

end_to_end_tests/custom-templates-golden-record/my_test_api_client/api/parameters/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
class ParametersEndpoints:
1414
@classmethod
1515
def get_common_parameters_overriding_param(cls) -> types.ModuleType:
16+
"""
17+
Test that if you have an overriding property from `PathItem` in `Operation`, it produces valid code
18+
"""
1619
return get_common_parameters_overriding_param
1720

1821
@classmethod

end_to_end_tests/custom-templates-golden-record/my_test_api_client/api/tests/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
no_response_tests_no_response_get,
1515
octet_stream_tests_octet_stream_get,
1616
post_form_data,
17+
post_tests_json_body_string,
1718
test_inline_objects,
1819
token_with_cookie_auth_token_with_cookie_get,
1920
unsupported_content_tests_unsupported_content_get,
@@ -86,6 +87,13 @@ def json_body_tests_json_body_post(cls) -> types.ModuleType:
8687
"""
8788
return json_body_tests_json_body_post
8889

90+
@classmethod
91+
def post_tests_json_body_string(cls) -> types.ModuleType:
92+
"""
93+
Json Body Which is String
94+
"""
95+
return post_tests_json_body_string
96+
8997
@classmethod
9098
def defaults_tests_defaults_post(cls) -> types.ModuleType:
9199
"""

end_to_end_tests/golden-record/my_test_api_client/api/default/get_common_parameters.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,14 @@ def sync_detailed(
4545
client: Client,
4646
common: Union[Unset, None, str] = UNSET,
4747
) -> Response[Any]:
48+
"""
49+
Args:
50+
common (Union[Unset, None, str]):
51+
52+
Returns:
53+
Response[Any]
54+
"""
55+
4856
kwargs = _get_kwargs(
4957
client=client,
5058
common=common,
@@ -63,6 +71,14 @@ async def asyncio_detailed(
6371
client: Client,
6472
common: Union[Unset, None, str] = UNSET,
6573
) -> Response[Any]:
74+
"""
75+
Args:
76+
common (Union[Unset, None, str]):
77+
78+
Returns:
79+
Response[Any]
80+
"""
81+
6682
kwargs = _get_kwargs(
6783
client=client,
6884
common=common,

end_to_end_tests/golden-record/my_test_api_client/api/default/post_common_parameters.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,14 @@ def sync_detailed(
4545
client: Client,
4646
common: Union[Unset, None, str] = UNSET,
4747
) -> Response[Any]:
48+
"""
49+
Args:
50+
common (Union[Unset, None, str]):
51+
52+
Returns:
53+
Response[Any]
54+
"""
55+
4856
kwargs = _get_kwargs(
4957
client=client,
5058
common=common,
@@ -63,6 +71,14 @@ async def asyncio_detailed(
6371
client: Client,
6472
common: Union[Unset, None, str] = UNSET,
6573
) -> Response[Any]:
74+
"""
75+
Args:
76+
common (Union[Unset, None, str]):
77+
78+
Returns:
79+
Response[Any]
80+
"""
81+
6682
kwargs = _get_kwargs(
6783
client=client,
6884
common=common,

end_to_end_tests/golden-record/my_test_api_client/api/location/get_location_query_optionality.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,17 @@ def sync_detailed(
6969
null_not_required: Union[Unset, None, datetime.datetime] = UNSET,
7070
not_null_not_required: Union[Unset, None, datetime.datetime] = UNSET,
7171
) -> Response[Any]:
72+
"""
73+
Args:
74+
not_null_required (datetime.datetime):
75+
null_required (Union[Unset, None, datetime.datetime]):
76+
null_not_required (Union[Unset, None, datetime.datetime]):
77+
not_null_not_required (Union[Unset, None, datetime.datetime]):
78+
79+
Returns:
80+
Response[Any]
81+
"""
82+
7283
kwargs = _get_kwargs(
7384
client=client,
7485
not_null_required=not_null_required,
@@ -93,6 +104,17 @@ async def asyncio_detailed(
93104
null_not_required: Union[Unset, None, datetime.datetime] = UNSET,
94105
not_null_not_required: Union[Unset, None, datetime.datetime] = UNSET,
95106
) -> Response[Any]:
107+
"""
108+
Args:
109+
not_null_required (datetime.datetime):
110+
null_required (Union[Unset, None, datetime.datetime]):
111+
null_not_required (Union[Unset, None, datetime.datetime]):
112+
not_null_not_required (Union[Unset, None, datetime.datetime]):
113+
114+
Returns:
115+
Response[Any]
116+
"""
117+
96118
kwargs = _get_kwargs(
97119
client=client,
98120
not_null_required=not_null_required,

end_to_end_tests/golden-record/my_test_api_client/api/parameters/delete_common_parameters_overriding_param.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,15 @@ def sync_detailed(
4747
client: Client,
4848
param_query: Union[Unset, None, str] = UNSET,
4949
) -> Response[Any]:
50+
"""
51+
Args:
52+
param_path (str):
53+
param_query (Union[Unset, None, str]):
54+
55+
Returns:
56+
Response[Any]
57+
"""
58+
5059
kwargs = _get_kwargs(
5160
param_path=param_path,
5261
client=client,
@@ -67,6 +76,15 @@ async def asyncio_detailed(
6776
client: Client,
6877
param_query: Union[Unset, None, str] = UNSET,
6978
) -> Response[Any]:
79+
"""
80+
Args:
81+
param_path (str):
82+
param_query (Union[Unset, None, str]):
83+
84+
Returns:
85+
Response[Any]
86+
"""
87+
7088
kwargs = _get_kwargs(
7189
param_path=param_path,
7290
client=client,

end_to_end_tests/golden-record/my_test_api_client/api/parameters/get_common_parameters_overriding_param.py

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def _get_kwargs(
1010
param_path: str,
1111
*,
1212
client: Client,
13-
param_query: str = "overriden_in_GET",
13+
param_query: str = "overridden_in_GET",
1414
) -> Dict[str, Any]:
1515
url = "{}/common_parameters_overriding/{param}".format(client.base_url, param=param_path)
1616

@@ -45,8 +45,19 @@ def sync_detailed(
4545
param_path: str,
4646
*,
4747
client: Client,
48-
param_query: str = "overriden_in_GET",
48+
param_query: str = "overridden_in_GET",
4949
) -> Response[Any]:
50+
"""Test that if you have an overriding property from `PathItem` in `Operation`, it produces valid code
51+
52+
Args:
53+
param_path (str):
54+
param_query (str): A parameter with the same name as another. Default:
55+
'overridden_in_GET'. Example: an example string.
56+
57+
Returns:
58+
Response[Any]
59+
"""
60+
5061
kwargs = _get_kwargs(
5162
param_path=param_path,
5263
client=client,
@@ -65,8 +76,19 @@ async def asyncio_detailed(
6576
param_path: str,
6677
*,
6778
client: Client,
68-
param_query: str = "overriden_in_GET",
79+
param_query: str = "overridden_in_GET",
6980
) -> Response[Any]:
81+
"""Test that if you have an overriding property from `PathItem` in `Operation`, it produces valid code
82+
83+
Args:
84+
param_path (str):
85+
param_query (str): A parameter with the same name as another. Default:
86+
'overridden_in_GET'. Example: an example string.
87+
88+
Returns:
89+
Response[Any]
90+
"""
91+
7092
kwargs = _get_kwargs(
7193
param_path=param_path,
7294
client=client,

end_to_end_tests/golden-record/my_test_api_client/api/parameters/get_same_name_multiple_locations_param.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,17 @@ def sync_detailed(
5757
param_header: Union[Unset, str] = UNSET,
5858
param_cookie: Union[Unset, str] = UNSET,
5959
) -> Response[Any]:
60+
"""
61+
Args:
62+
param_path (str):
63+
param_query (Union[Unset, None, str]):
64+
param_header (Union[Unset, str]):
65+
param_cookie (Union[Unset, str]):
66+
67+
Returns:
68+
Response[Any]
69+
"""
70+
6071
kwargs = _get_kwargs(
6172
param_path=param_path,
6273
client=client,
@@ -81,6 +92,17 @@ async def asyncio_detailed(
8192
param_header: Union[Unset, str] = UNSET,
8293
param_cookie: Union[Unset, str] = UNSET,
8394
) -> Response[Any]:
95+
"""
96+
Args:
97+
param_path (str):
98+
param_query (Union[Unset, None, str]):
99+
param_header (Union[Unset, str]):
100+
param_cookie (Union[Unset, str]):
101+
102+
Returns:
103+
Response[Any]
104+
"""
105+
84106
kwargs = _get_kwargs(
85107
param_path=param_path,
86108
client=client,

end_to_end_tests/golden-record/my_test_api_client/api/parameters/multiple_path_parameters.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,17 @@ def sync_detailed(
4747
*,
4848
client: Client,
4949
) -> Response[Any]:
50+
"""
51+
Args:
52+
param4 (str):
53+
param2 (int):
54+
param1 (str):
55+
param3 (int):
56+
57+
Returns:
58+
Response[Any]
59+
"""
60+
5061
kwargs = _get_kwargs(
5162
param4=param4,
5263
param2=param2,
@@ -71,6 +82,17 @@ async def asyncio_detailed(
7182
*,
7283
client: Client,
7384
) -> Response[Any]:
85+
"""
86+
Args:
87+
param4 (str):
88+
param2 (int):
89+
param1 (str):
90+
param3 (int):
91+
92+
Returns:
93+
Response[Any]
94+
"""
95+
7496
kwargs = _get_kwargs(
7597
param4=param4,
7698
param2=param2,

end_to_end_tests/golden-record/my_test_api_client/api/tag1/get_tag_with_number.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ def sync_detailed(
3737
*,
3838
client: Client,
3939
) -> Response[Any]:
40+
"""
41+
Returns:
42+
Response[Any]
43+
"""
44+
4045
kwargs = _get_kwargs(
4146
client=client,
4247
)
@@ -53,6 +58,11 @@ async def asyncio_detailed(
5358
*,
5459
client: Client,
5560
) -> Response[Any]:
61+
"""
62+
Returns:
63+
Response[Any]
64+
"""
65+
5666
kwargs = _get_kwargs(
5767
client=client,
5868
)

0 commit comments

Comments
 (0)