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 0120486e6207b41cdd18b89eaf25f061ac87195a.
* 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 31299af0fcaafe6c3ab848320e230a00ce8ea9e5.
* prepare 7.17.0-SNAPSHOT
* update doc, samples
2025-09-28 17:25:13 +08:00
Artem ILIN
5f647b8477
[python] fixes #21936 , api client type checks ( #21935 )
2025-09-11 00:04:48 +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
keepConcentration
0e42edc95b
[ #21619 ] fix(python): update pyproject.toml license format with poetry1 fallback ( #21931 )
...
* Add support for both string and object license formats in `pyproject.toml` for Python and Python-Pydantic generators. (#21619 )
* Generate the samples (#21698 )
* Generate the samples (#21698 )
* Remove Python-Pydantic-v1 license format tests (#21619 )
* Revert license format to string in Python-Pydantic-v1 samples (#21619 )
2025-09-10 15:35:10 +08:00
William Cheng
7b3de8dbce
[python] fix default value when enum is a reference ( #21923 )
...
* fix default value when enum is ref (python)
* update spec
2025-09-09 09:21:09 +08:00
CatBraaain
d8593ef6d7
style: add a space before comment text in .gitignore ( #21844 )
2025-08-31 22:35:54 +08:00
William Cheng
20be2decde
Prepare v7.16.0 release ( #21794 )
...
* Revert "v7.15.0 release (#21792 )"
This reverts commit 2c816f89cbd6c4670aaf6e3387c88daadae6cbad.
* prepare 7.15.0 release
* update samples
2025-08-22 19:17:23 +08:00
jack-edmonds-dd
caf53ac6c4
Fix overly permissive regular expression. ( #21777 )
2025-08-21 13:44:49 +08:00
Espen Haugsdal
43d58ee9b0
Use Python uuid.UUID instead of StrictStr ( #21740 )
2025-08-17 22:25:53 +08:00
Pascal Bachor
c4a7c14c8f
python: Reinstate lazy imports ( #21486 )
...
* python: reinstate lazy imports
* python: Update samples
---------
Co-authored-by: Pascal Bachor <bachorp@users.noreply.github.com>
2025-07-16 15:53:38 +08:00
William Cheng
046be5dba1
Prepare 7.15.0 ( #21445 )
...
* Revert "v7.14.0 release (#21443 )"
This reverts commit 5eb083e5ce1dd99659fadc03d7c6e809d3077af6.
* prepare v7.15.0 snapshot
* update samples
* update readme
* update doc
2025-06-25 21:34:58 +08:00
Youri Westerman
43e878b421
[python] Validate pyproject.toml and fix the pyproject.toml version constraint format ( #21402 )
...
* Validate pyproject.toml of echo client python sample
* Use PEP-508 compatible version constraint for `requires-python` key
* Update samples
* Move job to petstore workflow
* Update generated sample
* Use equals or greater than operator instead of greater than
* Update samples
2025-06-18 16:39:37 +08:00
Youri Westerman
50c6754fcc
Fix broken mypy checks ( #21423 )
2025-06-18 15:51:04 +08:00
William Cheng
4cfc8eff00
Add tests for enum names with dots in python cilents ( #21374 )
...
* add tests for enum names with dot
* remove file
* apply same fix to python pydantic v1
* update test
2025-06-04 16:18:10 +08:00
Youri Westerman
041d36c954
[python] Fix poetry deprecation warnings ( #21268 )
...
* Convert pyproject.toml template to the format expected by Poetry >=2.0
(https://python-poetry.org/blog/announcing-poetry-2.0.0 )
* Update samples
* Add option to fallback to Poetry 1.x style pyproject.toml
* Generate new docs and samples
* Place project.urls section a bit further down, so that it doesn't clash with other sections
* Update samples
2025-05-25 21:16:31 +08:00
Youri Westerman
4379a23608
[python] Explicitly define github workflow permissions ( #21311 )
...
* Explicitly define github workflow permissions (python)
* Update samples
2025-05-22 10:21:19 +08:00
Tassilo Karge
894008f325
[Python] Correct sanitize_for_serialization in python generator for list in oneOf schema elements, fixes #18106 ( #19405 )
...
* correct sanitize_for_serialization in python generator, fixes #18106
The method did not consider the objects created for oneOf schemata. If one of the cases was a list, to_dict would return it instead of something that has an items() method.
* generate new samples
2025-05-20 16:26:38 +08:00
William Cheng
5f63385a31
Provide " as member" where needed ( #21304 )
...
* fix : #20878 Provide " as member" where needed
- Generate new samples
- Add tests for all effected python versions
- Ran tests with success
Commands used to verify:
./bin/generate-samples.sh ./bin/configs/python*
mvn verify -Psamples
mvn integration-test -f modules/openapi-generator/pom.xml -Dtest=org.openapitools.codegen.python.PythonPydanticV1ClientCodegenTest -e
mvn integration-test -f modules/openapi-generator/pom.xml -Dtest=org.openapitools.codegen.python.PythonClientCodegenTest -e
* remove 3.8 tests
* use localhost
* update tests
* update test
---------
Co-authored-by: Robert Plummer <rplummer@sequel.ae>
2025-05-20 16:25:11 +08:00
Juanpe Araque
f2813716fb
[Python] Add __all__ variable in the package __init__.py file for Python APIs ( #21185 )
...
* Add __all__ to the package __init__.py file for Python APIs
* Remove empty line before closing bracket
* Add missing samples
2025-05-07 15:59:49 +08:00
William Cheng
dbf720c093
Prepare 7.14.0 release ( #21159 )
...
* Revert "v7.13.0 release (#21157 )"
This reverts commit 4b805ff6b7ac5bd2557555810357569fe2677311.
* prepare v7.14.0 release
* update samples
2025-04-27 22:04:03 +08:00
PidgeyBE
72de5bc952
[Python] Fix the post processing of string enums ( #20976 )
...
* fix/ x-enum-varnames in python
* make x-enum-varnames examples more clear
* make x enum varname usage more explicit
* fix tests
* trigger tests
* trigger tests once again...
* fix more tests
2025-04-23 15:45:44 +08:00
Youri Westerman
73b6b7084f
Drop python 3.8 support python 3.13 in python generator ( #20909 )
...
* Drop support for python 3.8 and add support for 3.13 in python generator templates
* Update docs
* Test samples without python 3.8 and with 3.13
* Generate samples
2025-03-23 18:10:32 +08:00
Robinsstudio
02307dbf0c
fix : #20826 Update urllib3 requirement for Python generator ( #20845 )
...
* fix : #20826 Update urllib3 requirement for Python generator
* Fix test to use localhost instead of petstore.swagger.io
2025-03-17 18:26:57 +08:00
William Cheng
a79aad8420
Prepare 7.13.0 ( #20758 )
...
* Revert "v7.12.0 release"
This reverts commit 073723cb4d41187f839fbb46565d109293fa22d7.
* set version to v7.13.0-SNAPSHOT
* update samples
* update doc
2025-02-28 13:48:36 +08:00
micolous
30787a16fb
[Python] Add ca_cert_data parameter ( #20697 )
...
* Add `ca_cert_data` parameter to Python client.
This lets a client validate a server's CA certificate chain using a
variable/constant containing PEM (`str`) or DER (`bytes`) data, rather than
needing to reference a file on disk.
* python: Fix `ca_cert_data` on Python 3.8
2025-02-26 16:04:32 +08:00
Sylvain Joubert
0ff8c46595
[Python] Fix mustache tag syntax in github worklow ( #20701 )
2025-02-21 17:43:17 +08:00
Jonathan Martens
890c37fd77
fix: display of markdown in notes section ( #20534 )
...
* fix: display of markdown in notes section
* update samples
* skip blank lines
---------
Co-authored-by: William Cheng <wing328hk@gmail.com>
2025-02-19 17:15:29 +08:00
William Cheng
1fa07bf46c
Prepare 7.12.0 ( #20512 )
...
* Revert "v7.11.0 release (#20508 )"
This reverts commit a7240eeefeedeefe7fc80ef22747dfc67e126324.
* prepare 7.12.0 snapshot version
* update samples
* update readme
2025-01-21 00:10:09 +08:00
Pascal Bachor
61bdc6bf84
[Python] adjust multi-constraint dependency syntax to comply with PEP 508 ( #20458 )
...
Co-authored-by: Pascal Bachor <bachorp@users.noreply.github.com>
2025-01-14 12:44:46 +08:00
Yousef Haggy
7a23ac7615
[Python] Bug Fix - model_generic templates to have valid imports for polymorphism ( #20273 )
...
* fix model_generic python templates to have valid imports for polymorphism
* update samples
* update samples
---------
Co-authored-by: yugi <yugi-big@proton.me>
2025-01-09 11:40:47 +08:00
William Cheng
85c81bee5b
[python] Close test API clients ( #20400 )
...
* close api client
* update samples
* update python pydantic v1 test files
* update python disallow additional property tests
* update python tests
* update python tests
* update python aiohttp tests
* update python pydantic aiohttp tests
* update python pydantic v1 tests
* revert sync teardown
* update python disallow tests
* update FILES
* update python echo api tests
* update python tests
---------
Co-authored-by: Huan-Cheng Chang <changhc84@gmail.com>
2025-01-04 17:08:29 +08:00
William Cheng
bd8cd8bf9f
update python samples
2024-12-30 11:54:55 +08:00
OM HASE
de41fd27d1
Fix(Python): Add custom exceptions for HTTP status codes 409 (Conflict) and 422 (Unprocessable Entity) #20244 ( #20251 )
...
* Update exceptions.mustache
* Fix(Python): Add custom exceptions for HTTP status codes 409 (Conflict) and 422 (Unprocessable Entity) #20244
2024-12-30 11:53:12 +08:00
loic-seguin
b01c8be47f
bugfix: generate correct setup.pi when no paths are specified ( #20098 )
2024-12-17 10:58:26 +08:00
jops-wtakase
7b35613cfc
[python] Encode list query params ( #20148 )
...
* Bugfix: #17688 : Encode list query params
* Test: #17688 : Update validation error message tests for Pydantic 2.10+
Pydantic 2.10+ introduced changes to validation error messages,
requiring updates to the affected test cases.
2024-11-26 23:53:12 +08:00
William Cheng
654f62ce3c
Prepare 7.11.0 ( #20130 )
...
* Revert "prepare 7.10.0 release (#20128 )"
This reverts commit 12dfe8fe74a1515d1e69e00df9abe4128aa44160.
* update to 7.11.0-SNAPSHOT, update samples
* update docs
2024-11-18 20:15:29 +08:00
William Cheng
02847e9323
Update minimum supported version of python in docs to 3.8+ ( #20118 )
...
* Update minimum supported version of python in docs
* update samples, docs
---------
Co-authored-by: Hugo Posnic <hugo.posnic@protonmail.com>
2024-11-16 18:01:50 +08:00
Jonathan Ballet
57cfff1950
python: stronger typing for the "configuration" module ( #20014 )
...
* python: strong typing for the configuration module
* 3.8 compatibility
* fix bearer format
* Specific auth settings
2024-11-06 16:36:47 +08:00
Chirag Jain
67af02ccc8
python-pydantic-v1: Keep trailing commas for enum validation tuples ( #19985 )
...
* python-pydantic-v1: Keep trailing commas for tuples when enum has just single member
* Update samples
* Add test for single member enums
* Refactor test name
2024-11-02 15:26:19 +08:00
vcutrona
45fa4384e7
[python] Check if the given input is a container (Array or Map) when validating enum values ( #19316 )
...
* checks if input is Array or Map in validate_enum
* update samples
2024-10-10 14:57:04 +08:00
William Cheng
e2c458b9ea
Prepare 7.10.0 ( #19809 )
...
* Revert "prepare 7.9.0 release (#19808 )"
This reverts commit 4145000dfebe7a9edea4555c8515383da7602458.
* prepare 7.10.0 snapshot
* update doc
* update samples
2024-10-08 11:21:54 +08:00
Kunitsyn Oleg
4ff8c3aaef
[Python][Client] Allow all content-types with text/ prefix ( #19802 )
...
* ODM-12108: allow all content-types with text/ prefix
* ODM-12108: Update deserialization tests
---------
Co-authored-by: Oleg Kunitsyn <you@example.com>
2024-10-08 09:34:36 +08:00
Pascal Bachor
817da39124
[Python] Restore required dev dependency + Adjust generated Github workflow ( #19773 )
...
* Restore required python client dev dependency pytest-cov
* Harmonize python client workflow definitions
---------
Co-authored-by: Pascal Bachor <bachorp@users.noreply.github.com>
2024-10-04 00:39:45 +08:00
Pascal Bachor
619e4d9653
Harmonize python client dependency versions ( #19694 )
...
Co-authored-by: Pascal Bachor <bachorp@users.noreply.github.com>
2024-10-03 14:09:39 +08:00
Joscha Feth
0b32c5025e
chore: update github workflow checkput plugin references ( #19676 )
2024-09-29 21:23:02 +08:00
Mike Phillips
34aeb16c5e
Improve urllib3 semver flexibility ( #19458 )
2024-09-18 16:54:43 +08:00
Jonathan Ballet
40967a3d38
python: test with more modern versions ( #19452 )
...
Python 3.12 has been released in October 2023, it should be tested in
the CI.
Python 3.7 is not maintained anymore, removing it from the minimum
required version in `pyproject.toml` files.
2024-09-18 16:53:51 +08:00