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
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
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
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
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
ふぁ
69cce249f6
[python] fix content_type deserialize ( #19317 )
...
* [Python] fix : #19285
* [python] update sample
* [python] add test
* [python] remove test
2024-08-24 23:40:15 +08:00
Rory Schadler
cc98333d87
feat(python): handle multiple file parameters ( #19329 )
...
* test: fix broken python test
* fix: handle multiple file parameters
Previously an array of files was not handled correctly, despite the type
annotation implying it was.
* feat: handle filename,filedata tuples in file param
This allows for users to pass filenames with their data in file params,
which is useful for multipart formdata requests. Without this, the list
of files added in the previous commit would have the same filename for
all files (the parameter name).
2024-08-21 15:09:10 +08:00
William Cheng
91da2fd240
Prepare 7.9.0 snapshot ( #19386 )
...
* Revert "v7.8.0 release (#19385 )"
This reverts commit 6bdc452f92d49dcac7ac21dfe8751c8cc4267b98.
* update samples for v7.9.0-snapshot
2024-08-19 16:14:51 +08:00
VelorumS
f082a35d2e
[Python] fix object arrays giving mypy error "Incompatible types in assignment" in to_dict() ( #19223 )
...
* [python] mypy fix for multiple arrays of objects
* [python] mypy test for multiple arrays of objects
2024-07-29 16:34:27 +08:00
m-standfuss
6ad5864d28
Adding decimal support for python client generation ( #19203 )
...
* Adding decimal to template for Python generator
* Rerunning the build steps
* Add tests for decimal serialization and deserialization.
* Move test to python not legacy pydantic sample
* readd old imports
---------
Co-authored-by: Adam <abolfik@pollyex.com>
2024-07-23 16:16:23 +08:00
Jeremy Audet
722be84cac
Update call to assertDictContainsSubset() ( #19122 )
...
`TestCase.assertDictContainsSubset()` was deprecated in Python 3.2,
which went EOL in 2016. Rewrite the assertion to target Python 3.8+.
See: https://docs.python.org/3.2/library/unittest.html#unittest.TestCase.assertDictContainsSubset
See: https://devguide.python.org/versions/
2024-07-13 18:28:26 +08:00
Jeremy Audet
a4292c5db5
Update poetry lockfile ( #19123 )
...
Updated with `poetry lock`. This makes it possible to execute `poetry
run -- python -m unittest discover` and the like.
2024-07-10 17:22:01 +08:00
William Cheng
20cfce0b4a
Prepare v7.8.0 ( #19048 )
...
* Revert "v7.7.0 release"
This reverts commit f3dd32385e02065ad298801ca11b8871bcb3a92a.
* prepare v7.8.0
* update readme
* update doc
* update samples
2024-07-02 16:45:53 +08:00
Cameron Koegel
53f1094765
[Python] Allow Overriding Accept Header ( #19025 )
...
* [Python] Allow Overriding Accept Header
* generate samples
* add tests
2024-06-28 19:27:10 +08:00
Cameron Koegel
0d05ee35f0
[Python] Add Flag to Allow Ignoring Operation Servers ( #18981 )
...
* [Python] Add Flag to Allow Ignoring Operation Servers
* generate samples
* add tests
2024-06-26 15:08:13 +08:00
Vito De Tullio
e5ae07c2b4
avoid setting debug property if not needed ( #18872 )
...
* avoid setting debug property if not needed
* update samples
* fix compatibility with python 3.7
* always set Configuration.__debug
* update samples
* check `Configuration` behavior when debug parameter is / is not set
* address PR requests
2024-06-20 18:23:34 +08:00
Oleg Gromiak
c3a2fe0592
[Python] Add retries option to Configuration constructor ( #18919 )
...
* Python: add retries option to Configuration constructor
* Update autogenerated sample clients
2024-06-19 17:06:33 +08:00
ふぁ
6ae8a8f4c7
[python] fix deserialize on basic str fails ( #18800 )
...
* [python] fix #18774 Deserialize on basic str fails
* [python] update sample
* [python] update test
* [python] remove type
* [python] fix test
* [python] add top level type test
* Update deserialize content_type parameter and quote
* [python] restore echo_api test
* [python] add allow empty json in Response
2024-06-06 16:15:50 +08:00
Lars van Leeuwen
8783ad8a18
[Python] List enum members in docs ( #18804 )
...
* List enum values in docs
* Remove newline
* Remove another newline
* Generate samples
2024-06-01 17:00:11 +08:00
William Cheng
741bf0c035
Prepare 7.7.0-SNAPSHOT ( #18709 )
...
* Revert "7.6.0 release"
This reverts commit d76f9d32d11a03be2b40ebff728ef0ff86332fcb.
* prepare 7.7.0 snapshot in master
* update samples
2024-05-20 17:27:17 +08:00
William Cheng
807250a430
Prepare 7.6.0 ( #18412 )
...
* Revert "v7.5.0 release"
This reverts commit 1eafe2aebf33b13bee0ead66d62a6436e7db059d.
* update master to v7.6.0 snapshot
* update readme
* update samples
2024-04-17 19:05:37 +08:00
Kathryn DiPippo
0b3e6edb98
[python] Update docs/ Markdown files for Classes to fix _form_ typo and correct casing for class name when calling from_dict() ( #18359 )
...
* Update Python mustache templates to fix _form_ typo and correct casing for class name when calling from_dict()
* Results of 'build the project' checklist step
2024-04-12 12:29:20 +08:00
BaptisteSaves
6bcc28d06e
Python: Correctly serialize enum with its value ( #18327 ) ( #18328 )
2024-04-10 21:12:37 +08:00
ふぁ
5e9546451c
[Python] Add echo_api test object serialization for multipart requests ( #18176 )
...
* [python] echo add test object serialization for multipart requests
* [echo api] update samples
* [echo api] update samples
2024-03-23 21:40:10 +08:00
ふぁ
e39b99051c
[python] add test Missing the important statement for Datetime in Python binding generation ( #18175 )
...
* [python] add test on datetime response import
* [python] update sample
* [python] update sample
2024-03-21 15:40:33 +08:00
William Cheng
7aeb952565
update samples
2024-03-21 11:42:51 +08:00
Zishun (Zack) WEI
43ca5fcac9
Fix issue 18088: Missing the important statement for Datetime in Python binding generation ( #18173 )
...
* fix issue 18088
* update samples
2024-03-21 11:39:19 +08:00
Artur Zdolinski
c15e267e22
Fix problem in sanitize_for_serialization for Python (pydantic type SecretStr ) BUG#16086 (2nd pull) ( #18023 )
...
* fix-for-bug-16086
* add to_dict alternative
* fix assertEqual
* remove extra blank line + test_model Argument SecretStr set
* update samples / remove extra blank line
* restore sanitize test for serialization with different data types
* remove empty line in api_client.mustache
* remove 2nd empty line in api_client.mustache
2024-03-20 19:14:43 +08:00
Poolmann
b7ea139f77
[Python] Fix object serialization for multipart requests ( #18140 )
...
* Fix multipart object serialization
* Update samples
2024-03-19 18:31:08 +08:00
ふぁ
1586c698c9
[python] Fix multipart requests with type file fails with binary data ( #18079 )
...
* [python] fix Multipart requests with type file fails with binary data #18073
* [python] update sample
2024-03-12 19:24:55 +08:00
ふぁ
678db1e4af
[python] json like str response ( #18069 )
...
* [python] json like str response
* [python] fix response deserialize
* [python] update sample
* [python] fix echo_api test quotes
2024-03-11 20:27:26 +08:00
William Cheng
4ff7e0ec3f
Prepare 7.5.0 snapshot ( #18068 )
...
* Revert "7.4.0 release"
This reverts commit eda049348425171df772a7b9087cc97db718cfda.
* prepare 7.5.0 snapshot version
* update samples
* update doc
2024-03-11 11:10:52 +08:00
Ross Bender
cf2435f335
Add support for controlling output of OpenAPI Generator version in generated files ( #17952 )
...
* add initial openapi config and java generated files
* add java implementation for adding generator version
* regenerate sample client files
* remove tabs
* only show generated version if build info exists
* set build info for batch generation
* update generator doc for new global flag
* use existing property for generator version
* update templates to include generator version
* update templates for better generator version syntax
* revert undesired changes
* regenerate samples for openapi client
* update templates to correct formatting/newlines
* correct description text and add to usage doc
* add generator cli option for all codegen types
* use more concise version info; update existing codegens to support new prop
* correct wrong prop reference
* add initial test coverage for new prop
* update last (scala) templates with new prop
* update samples after upstream merge
* use consistent version output
* use better sample project id/name
* revert using option for generator version in templates
2024-03-09 15:52:08 +08:00
Kathryn DiPippo
c10c9146b9
[python] Update Markdown files for Models with fixed Python print() syntax ( #17993 )
...
* Update Markdown file with fixed Python example
* ./bin/generate-samples.sh ./bin/configs/*.yaml
2024-02-29 10:54:54 +08:00
ふぁ
c99a5cfeb6
[python] update model_config from dict to ConfigDict ( #17900 )
...
* [python] rewrite dict as ConfigDict
* [python] update sample
* [python] undo unwanted changes
* [python] update sample
2024-02-20 17:53:13 +08:00
Simon Podlipsky
1e9bccca16
feat: generate EOL in VERSION file ( #17829 )
...
The EOL is missing so let's add it in order to comply with POSIX standard:
Line
> A sequence of zero or more non- <newline> characters plus a terminating <newline> character.
2024-02-12 15:40:55 +08:00