32 Commits

Author SHA1 Message Date
William Cheng
b8ccd25a79
[python-nextgen] Various fixes reported by pylint (#15309)
* various pylint fixes

* rearrange test

* Revert "rearrange test"

This reverts commit 24d777a8a87161b6fc36527f6c1a06c03216bb64.
2023-04-26 17:12:10 +08:00
William Cheng
52417f0597
use Field(...) for required properties in python-nextgen (#15290) 2023-04-24 16:07:09 +08:00
William Cheng
b5745e6f26
[python-nextgen] Fix enum query parameter (#15278)
* fix enum query parameter in python-nextgen

* update samples
2023-04-22 16:08:59 +08:00
William Cheng
0176957e26
[python-nextgen] better sample code (#15248)
* better python-nextgen sample code

* remove future import

* fix signing doc

* better test

* use hasHttpBearerMethods instead
2023-04-19 15:55:06 +08:00
William Cheng
70a6106626
add null check in string with regular expression (#15233) 2023-04-16 23:46:17 +08:00
Robert Schweizer
448cbfd018
[python-nextgen] Limit allowed pydantic version range (#15189)
Align the lower limits between pyproject.toml and setup.py.

Set a common upper limit of <2, because version 2 brings breaking
changes.
2023-04-12 11:08:28 +08:00
Tushar
a4f5a74d5b
fix(python-nextgen): dependency incompatiblity (#15167)
Downgrade tox and flake8. Alternateively, we can increase minimum python version to 3.8.1
2023-04-10 10:31:53 +08:00
Tushar
4a83c9181f
fix(python-nextgen): Use spec format for authors in pyproject (#15170) 2023-04-10 10:31:37 +08:00
William Cheng
bd7bc9aa79
[python-nextgen] Add bytearray, none_type as primitive type (#15130)
* add bytearray, none type as primitive type

* update samples

* update doc
2023-04-07 09:34:04 +08:00
William Cheng
07227d4650
add support for union of strictfloat and strictint (#15124) 2023-04-06 11:51:12 +08:00
William Cheng
5d1e18306a
Prepare 6.6.0-SNAPSHOT (#15100)
* set 6.6.0 snapshot version

* update samples

* update readme
2023-04-01 18:48:01 +08:00
William Cheng
7417432a54
Prepare 6.5.0 release (#15099)
* 6.5.0 release

* update samples
2023-04-01 15:03:35 +08:00
William Cheng
0dc84520e7
[python-nextgen] use __fields_set__ to determine if the field is needed in to_dict (#15086)
* use __fields_set__ to determine if the field is needed

* fix tests
2023-04-01 10:23:38 +08:00
William Cheng
1710615fd8
fix python nextgen github workflow (#15092) 2023-03-31 22:40:23 +08:00
William Cheng
b59d535176
[python-nextgen] Fix binary response (#15076)
* fix binary response in python nextgen client

* update samples
2023-03-31 16:16:58 +08:00
William Cheng
3ccd9be080
remove absolute_import (#15071) 2023-03-30 10:07:15 +08:00
William Cheng
1cdcaeb1b9 update python-nextgen samples 2023-03-26 23:45:20 +08:00
William Cheng
e925336daf
remove allowStringInDateTimeParameters option (#15046) 2023-03-26 10:46:15 +08:00
William Cheng
b3bfa1ef3b
use Any instead of StrictStr in any type (#14995) 2023-03-21 14:52:54 +08:00
Tomáš Karásek
aa066ab6fa
[python-nextgen] Fix validation of list of enums (#14809)
* [python-nextgen] check enum arrady values better

* [python-nextgen] re-generate exapmles for #14809
2023-03-18 20:27:26 +08:00
William Cheng
d497c3d087
[python-nextgen] Better docstring/documentation (#14880)
* better docstring/documentation in python nextgen client

* update instruction in test files
2023-03-06 21:22:43 +08:00
William Cheng
46fb49ecd0
[python-nextgen] Add pyproject.toml (#14861)
* add pyproject.toml in python-nextgen client generator

* minor fix
2023-03-04 14:14:43 +08:00
William Cheng
6d48d73421
python-nextgen switch union order (#14762) 2023-03-01 15:30:18 +08:00
William Cheng
e82ae6bacd
[python-nextgen] Add datetime, date format support (#14799)
* add datetime, date format support in python nextgen

* encode query parameters

* update default datetime format

* change default datetime format
2023-03-01 15:29:47 +08:00
William Cheng
b5d4fa9d27
fix unique items in python nextgen client (#14816) 2023-02-26 10:21:26 +08:00
Emma
1f2d6b8848
[python-nextgen] support dict query params (#14727)
* [python-nextgen] convert dictionary query params to string

* [python-nextgen] regenerated samples

* [python-nextgen] added some test cases for parameters_to_url_query

* [python-nextgen] use json.dumps instead of str(v)

* [python-nextgen] update api_client tests
2023-02-25 22:25:52 +08:00
William Cheng
d400d7fb15
Better handling of x-nullable in codegen property (#14800)
* add failed tests

* add logic to handle x-nullable in property

* update samples

* update test
2023-02-24 15:24:34 +08:00
William Cheng
c50a775e0c
prepare 6.5.0 release (#14749) 2023-02-19 20:36:23 +08:00
William Cheng
93df0ff444
Prepare 6.4.0 release (#14748)
* prepare 6.4.0 release

* update samples
2023-02-19 18:53:20 +08:00
William Cheng
1bd3ce7ce2
[python-nextgen] Better oneOf, anyOf support (#14743)
* better oneof, anyof support

* improve anyof support

* fix deprecation warning

* fix anyof, add tests

* add nullable support, add test
2023-02-19 17:16:15 +08:00
William Cheng
0891b6056f
python better datetime test (#14742) 2023-02-19 16:48:36 +08:00
William Cheng
110460b71a
[python-nextgen] better datetime support in parameters (#14621)
* add allowStringInDateTimeParameters option

* add tests

* add files

* add tests for datetime query parameters

* fix file anme

* trigger build

* fix pytest

* install test requirement

* trigger build

* break build

* add new files

* fix Locale.ROOT

* update doc
2023-02-12 21:11:29 +08:00