Skip to content

Commit c01426a

Browse files
Merge pull request #2647 from tamird/prototype/modern-asyncio-generator
Regenerate the asyncio client with dependency-free lazy imports
2 parents 84c18ce + 55ea200 commit c01426a

1,765 files changed

Lines changed: 539233 additions & 312231 deletions

File tree

Some content is hidden

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

‎CHANGELOG.md‎

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
11
# Breaking Change from upgrading OpenAPI Generator to v7.24.0
22

3-
The synchronous client now uses the modern Python generator instead of
4-
`python-legacy`. Existing endpoint names, model names, and wire aliases
5-
are preserved, but applications may need the following updates:
3+
Both clients now use the modern Python generator instead of
4+
`python-legacy`. The asynchronous client uses the generator's `asyncio`
5+
library and `aiohttp` transport. Existing endpoint names, model names,
6+
and wire aliases are preserved, but applications may need the following
7+
updates:
68

79
- Synchronous runtime dependencies now require `urllib3>=2.6.3,<3`,
810
`pydantic>=2.11`, `lazy-imports>=1,<2`,
9-
`typing-extensions>=4.7.1`, and `python-dateutil>=2.8.2`. Python 3.10
10-
remains the minimum supported version. Async generation is unchanged.
11+
`typing-extensions>=4.7.1`, and `python-dateutil>=2.8.2`.
12+
- Asynchronous runtime dependencies now require
13+
`aiohttp>=3.13.5,<4.0.0`, `aiohttp-retry>=2.8.3`, `pydantic>=2.11`,
14+
`lazy-imports>=1,<2`, `typing-extensions>=4.7.1`, and
15+
`python-dateutil>=2.8.2`. `certifi` and `six` are no longer direct
16+
asynchronous dependencies. Python 3.10 remains the minimum supported
17+
version for both clients.
1118
- Models and API-call arguments now use Pydantic validation. Invalid,
1219
unknown, or previously coerced values can raise
1320
`pydantic.ValidationError` before a request is sent; models are
@@ -22,6 +29,14 @@ are preserved, but applications may need the following updates:
2229
the `RESTClientObject` HTTP-verb helpers must migrate to the modern
2330
request/response interface. `ApiException.body` is now decoded text
2431
instead of bytes.
32+
- Low-level asynchronous transport interfaces also changed. Direct
33+
callers of `ApiClient.call_api`, `ApiClient.param_serialize`,
34+
`ApiClient.response_deserialize`, or `RESTClientObject.request` must
35+
migrate to the modern `aiohttp` request/response interface. HTTP
36+
sessions are created lazily; close an owned client with
37+
`await client.close()` or an async context manager. Interactive
38+
websocket streams use the generated `_without_preload_content`
39+
operations.
2540
- `CoreV1Api.delete_namespace` now returns a decoded dictionary rather
2641
than `V1Status`, since a successful deletion can return either a
2742
terminating Namespace or a Status.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
c3d1f3292b01c5e3297240c5d49a69cd078653cd4a9f3d3482afa516a2d4c429
1+
fdf8e53487f406c1ebc282797e8c33f290c6ad9bf8df9cd13a776dd6f82eaadd
Lines changed: 10 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,10 @@
1-
# OpenAPI Generator Ignore
2-
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
3-
4-
# Use this file to prevent files from being overwritten by the generator.
5-
# The patterns follow closely to .gitignore or .dockerignore.
6-
7-
# As an example, the C# client generator defines ApiClient.cs.
8-
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
9-
#ApiClient.cs
10-
11-
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
12-
#foo/*/qux
13-
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14-
15-
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16-
#foo/**/qux
17-
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18-
19-
# You can also negate patterns with an exclamation (!).
20-
# For example, you can ignore all files in a docs folder with the file extension .md:
21-
#docs/*.md
22-
# Then explicitly reverse the ignore rule for a single file:
23-
#!docs/README.md
1+
.gitignore
2+
.github/
3+
.gitlab-ci.yml
4+
git_push.sh
5+
pyproject.toml
6+
requirements.txt
7+
test-requirements.txt
8+
setup.py
9+
.travis.yml
10+
tox.ini
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Requested Commit/Tag : v6.6.0
2-
Actual Commit : 7f8b853f502d9039c9a0aac2614ce92871e895ed
1+
Requested Commit/Tag : 830e9d156960bb7f51a5337f31636a7e73226474
2+
Actual Commit : 830e9d156960bb7f51a5337f31636a7e73226474

0 commit comments

Comments
 (0)