William Cheng
4603cc90bf
Use Pydantic for json serialization in .to_json method ( #23210 )
...
* [Python] Use pydantic_core.to_jsonable_python to convert non-standard data types
* [Python] Add test for UUID serialization
* update python samples
---------
Co-authored-by: Espen Haugsdal <espen.haugsdal@gmail.com >
2026-03-12 09:15:50 +08:00
ottmar-zittlau
4d83cfecdf
[Python] Fix python template for list and dicts of dicts ( #23112 )
...
* Fix python template for list and dicts of dicts
* Add test cases for dict of dict and list of dict
* Add generated samples
2026-03-06 22:12:51 +08:00
William Cheng
20b18ad828
update python samples
2026-02-25 16:26:01 +08:00
Timon
bfe5ca84ce
python(pydantic): Use validate_by_name config; populate_by_name will be deprecated ( #22931 )
...
* modules
* pydantic bump
* samples
* revert for fastapi generator and apply pydantic constrain everywhere
2026-02-25 15:51:44 +08:00
William Cheng
e01fdee81e
add uuid pattern tests to python client ( #23040 )
2026-02-24 09:47:41 +08:00
Timon
27cced51c0
feat(python): expose all config properties in constructor ( #23021 )
...
* templates
* samples
* scope to python generator
* address suggestions
* revert pydantic-v1
2026-02-24 08:12:12 +08:00
James Kent
a5e2fdf667
[PYTHON] switch from mutable bytearray to immutable bytes to avoid pydantic error ( #22988 )
...
* switch from mutable bytearray to immutable bytes
* update python samples
2026-02-24 07:54:26 +08:00
William Cheng
9432aaf4a3
Prepare 7.21.0 snapshot ( #22984 )
...
* Revert "v7.20.0 release (#22983 )"
This reverts commit bd7fc7f45f .
* update to v7.21.0 snapshot version
* update samples, docs
* update readme
2026-02-16 19:08:09 +08:00
William Cheng
73dcdd6976
Update python sdk to strip any directory traversal in filename ( #22965 )
...
* update python sdk
Strip any directory traversal
* rebased
* update samples, docs
* fallback case
---------
Co-authored-by: Pavel Slabko <slabkopg@gmail.com >
2026-02-14 00:57:57 +08:00
William Cheng
7eeab03a57
remove coding: utf-8 as thats the default already ( #22934 )
2026-02-10 16:42:05 +08:00
Timon
d81b0524af
feat(python): enhance retry configuration in REST client ( #22867 )
...
* feat(python): enhance retry configuration in REST client
Updated the retry parameter in the Configuration class to support different types based on the library used (urllib3 or asyncio). Adjusted the RESTClientObject to handle the new retry configuration, allowing for more flexible retry options. This change improves the handling of retries in API requests, ensuring compatibility with various retry strategies.
* add samples
* use async context for retry doc string
2026-02-07 16:38:34 +08:00
William Cheng
9adfe986a3
Prepare v7.20.0 release ( #22738 )
...
* Revert "v7.19.0 release (#22732 )"
This reverts commit ff400e9a31 .
* prepare v7.20.0 release
* update samples
* update doc
2026-01-20 03:13:58 +08:00
William Cheng
23eff6672f
Prepare v7.19.0 snapshot ( #22569 )
...
* Revert "7.18.0 release (#22567 )"
This reverts commit 51228436e0 .
* prepare 7.19.0 snapshot
* update samples
* update doc
* fix date
2025-12-22 19:25:23 +08:00
Jeremy Audet
cfcacf3074
Make python code compatible with urllib3 v2.6.0+ ( #22520 )
...
openapi-generator still uses methods that have been removed from urllib3
v2.6.0. The solution is as described in urllib3's changelog:
> Removed the HTTPResponse.getheaders() method in favor of
> HTTPResponse.headers. Removed the HTTPResponse.getheader(name,
> default) method in favor of HTTPResponse.headers.get(name, default).
> (#3622 )
See https://urllib3.readthedocs.io/en/latest/changelog.html
Close #22514
2025-12-09 15:29:32 +08:00
Josh Wulf
ddfcc95b61
fix: use httpx in generated configuration.py ( #22418 )
...
* fix: use httpx in generated configuration.py
* fix: add enum_values for httpx
* chore: update petstore samples
2025-11-23 15:11:48 +08:00
ddl-rliu
547eee1970
[BUG] Fix #22351 by updating exceptions.mustache to log both the response data and response body, when applicable ( #22352 )
...
* Update exceptions.mustache
* Add autogen files
2025-11-16 22:06:23 +08:00
Enric Pou
f37b8cce58
Add UUID examples and documentation ( #22303 )
2025-11-08 14:56:46 +08:00
William Cheng
f9d2b8b579
Prepare v7.18.0 release ( #22250 )
...
* Revert "v7.17.0 release (#22248 )"
This reverts commit 0120486e62 .
* prepare v7.18.0 release
* update samples
* update doc
2025-10-30 01:25:35 +08:00
Eddie Sholl
68b0dfe6d1
Expose mtls certificate config params in python and php configuration templates ( #22229 )
...
* Expose mtls config params in python template
* Expose certFile and keyFile configuration items to support mtls in php generated client
* Regenerate of examples
2025-10-28 12:33:05 +08:00
William Cheng
885ea07b17
Prepare 7.17.0 ( #22040 )
...
* Revert "v7.16.0 release"
This reverts commit 31299af0fc .
* prepare 7.17.0-SNAPSHOT
* update doc, samples
2025-09-28 17:25:13 +08:00
William Cheng
8300794c5e
update python samples
2025-09-11 20:56:37 +08:00
Pascal Bachor
6825d9ccaa
python: feature flag for lazy imports ( #21885 )
...
* python: feature flag for lazy imports
* python: update samples
* python: add python-lazyImports to test job
* python: reuse tests in lazyImports sample
* python: avoid using non-imported submodules
* add normalizer option
---------
Co-authored-by: Pascal Bachor <bachorp@users.noreply.github.com >
Co-authored-by: William Cheng <wing328hk@gmail.com >
2025-09-10 17:22:41 +08:00