William Cheng
47483e60cb
update version to 5.2.0-SNAPSHOT, update samples
2021-03-21 00:10:10 +08:00
William Cheng
0dc62e8b79
Prepare v5.1.1 in the master ( #9027 )
...
* Prepare v5.1.1 in the master
* move dart dio next to configs/other
2021-03-20 23:05:11 +08:00
William Cheng
e023eaa821
Prepare v5.1.0 release ( #9017 )
...
* prepare v5.1.0 release
* update samples (dart-dio-next)
2021-03-20 16:45:05 +08:00
William Cheng
3909505c5b
Merge remote-tracking branch 'origin/master' into 6.0.x
2021-03-13 23:26:43 +08:00
Tyler Ballast
f5151de9fc
Add whitespace to SDK documentation where necessary ( #8919 )
...
* Add a space between table title and the line above it to resolve issues when translating markdown to asciidoc
* Regenerate Samples
Co-authored-by: Tyler Ballast <tyler.ballast@reportix.com >
Co-authored-by: tballast <tyler.ballast@gmail.com >
2021-03-08 21:40:54 +08:00
William Cheng
d96197bcbd
Merge remote-tracking branch 'origin/master' into 6.0.x
2021-03-03 16:19:20 +08:00
Ronny Pfannschmidt
eb3d6d2f16
[python][template] move _path_to_item of simple init to avoid name error ( #8737 )
...
* [python][template] move _path_to_item of simple init up so its avaliable for missing default errors
* update generated examples
2021-02-22 21:00:14 -08:00
William Cheng
b4f4d7434b
Merge remote-tracking branch 'origin/master' into 6.0.x
2021-02-12 18:48:20 +08:00
William Cheng
3e81876e2c
Merge remote-tracking branch 'origin/master' into 5.1.x
2021-02-06 17:52:32 +08:00
William Cheng
c7fcb39a2d
Prepare v5.0.1 release ( #8627 )
...
* release 5.0.1
* update samples
2021-02-06 16:37:22 +08:00
Žilvinas Urbonas
90e25f6f4c
[BUG][Python] init access token for python client configuration ( #7469 )
...
* fix: init access token for python client configuration
* fix: remove duplicate initializations for access_token
2021-02-05 13:09:53 -08:00
William Cheng
2c457a458e
Merge remote-tracking branch 'origin/5.1.x' into 6.0.x
2021-02-02 21:43:53 +08:00
William Cheng
5b99d8724c
Merge remote-tracking branch 'origin/master' into 5.1.x
2021-02-02 21:04:15 +08:00
adpoliak
a4312412fc
[PYTHON] use customized default Configuration() objects if configured by the programmer ( #8500 )
2021-01-29 16:24:10 -08:00
Justin Black
2553d056dc
Removes nulltype from python, updates samples ( #8555 )
...
* Removes nulltype from python, updates samples
* Removes nulltype from the python requirements
* Removes nulltype import in models, moves requiredVars to optionalVars when approprieate
2021-01-28 09:30:36 -08:00
William Cheng
52065cc1c5
Merge remote-tracking branch 'origin/5.1.x' into 6.0.x
2021-01-18 12:40:31 +08:00
William Cheng
53a5bfecfd
Merge remote-tracking branch 'origin/master' into 5.1.x
2021-01-18 11:33:57 +08:00
Johannes Wienke
cd2a0db1ce
Fix counting for large API solutions in generated Python README ( #8403 )
...
* Fix counting for large API solutions
Let 2 follow 1.
* Update Python samples with new readme
2021-01-15 13:51:12 -08:00
Justin Black
c4dbd2cfa3
[python] Fixes file upload + download, adds tests ( #8437 )
...
* Adds tests for file upload and files upload
* Adds test_download_attachment
* Fixes test_upload_file
* Adds download_attachment endpoint
* Adds test_download_attachment
* Updates assert_request_called_with signature
* Samples regen
* Adds upload download file spec route and sample gen
* Fixes file upload for application/octet-stream, writes test_upload_download_file
* Changes if into elif
* Improves python code in api_client
2021-01-15 13:27:33 -08:00
Ronny Pfannschmidt
6b6d1b1a97
[python] fix #8404 : avoid shadowing the name Endpoint ( #8405 )
...
if a type was named Endpoint, its import for use in the api would shadow
the name Endpoint for the internal utility
2021-01-13 08:38:41 -08:00
Justin Black
ce893a84ff
Fixes object serialization when there is an inline array property which contains a refed enum ( #8387 )
...
* Fixes object inline enum defintion with refed enum item
* Adds refed array model example w/ serialization + deserialization
2021-01-08 13:15:55 -08:00
William Cheng
25b0cbe2f1
Prepare 5.0.1 snapshot ( #8249 )
...
* update version to 5.0.1-SNAPSHOT
* update samples
* update meta codegen
2020-12-21 17:14:18 +08:00
William Cheng
4261252491
prepare 6.0.0 snapshot release
2020-12-21 16:39:40 +08:00
William Cheng
345b68a107
prepare 5.1.0 snapshot release
2020-12-21 16:35:12 +08:00
William Cheng
d7d5e53f2b
Prepare v5.0.0 release ( #8247 )
...
* update to 5.0.0
* update samples
2020-12-21 13:04:11 +08:00
William Cheng
0be3fe6104
Set skipFormModel to true by default ( #8125 )
...
* set skipFormModel to true by default
* update tests
* regenerate ruby faraday client
* remove inline object spec files
* more clean up on inline object files
* update samples
2020-12-18 23:57:19 +08:00
Aanisha Mishra
f766735d5c
[Python][Client] Python model directory init missing ( #8215 )
...
* include model and api dir init mustaches
* update examples
* remove unwanted changes
* revert unwanted changes in sample
Co-authored-by: aani <aani>
2020-12-18 10:13:35 +08:00
Robert Parini
a4f84b2f8c
[Python][Client] Default to system CA instead of certifi ( #8108 )
...
* Use system CA by default and remove certifi
See https://github.com/OpenAPITools/openapi-generator/issues/6506
* Use system CA by default in asyncio client
* Update README_onlypackage.mustache
* Result of ./bin/generate-samples.sh
* Add ssl_ca_cert argument for Configuration
* Result of ./bin/generate-samples.sh
* Remove certifi, use system CA by default
2020-12-15 16:36:35 -08:00
Thomas Hervé
952cd9c689
Include description directly in python docstrings ( #8154 )
...
* Include description directly in python docstrings
mustache escaping the description make them render weirdly, including
sometimes unsupported characters in python.
* More parameters
2020-12-15 09:30:50 -08:00
fbl100
99d83712a8
Fixes issue #8014 , _check_type flag not being honored. ( #8053 )
...
* Fixes issue 8014, _check_type flag not being honored.
Updated model_utils.mustache to pass the check_type flag into attempt_convert_item(). Failure to do so
results in type validation errors occurring when the user has specifically requested that they be disabled.
* regenerated samples
Co-authored-by: Frank Levine <frank.levine@blacklynx.tech >
2020-12-07 12:18:16 -08:00
Ülgen Sarıkavak
e00ac502f1
[python] Update python versions ( #8042 )
...
* Remove redundant encoding definitions
UTF-8 is already the default encoding in Python 3.
* Remove Python3.4 related requirements
* Remove dead Python version 3.5
* Add Python 3.9 to CI and test configs
* Update petstore example
2020-12-07 12:07:35 -08:00
itaru2622
35d616c9af
Fix bug [python][client] generated python client code cannot POST object in multipart/form-data ( #8075 )
...
* encode object in json and add content-type:application/json for multipart/form-data
fix issue https://github.com/OpenAPITools/openapi-generator/issues/8068
* update samples by ./bin/generate-samples.sh
* non-ascii chars supported in encoding object to json, and add "content-type:application/json; charset=utf-8"
* update samples again, by ./bin/generate-samples.sh
* update comment(docstring) in parameters_to_multipart according to the discussion in PR review.
* fix default value in parameters_to_multipart function as described in PR review comment.
* update samples again, by ./bin/generate-samples.sh
2020-12-07 09:50:09 -08:00
Sergey
13f1c610d9
[python] Re-merge Subclass Python exceptions ( #7321 ) ( #8095 )
...
* Subclass Python exceptions (#7321 )
* Subclass Python exceptions:
- UnauthorizedException (401)
- ForbiddenException (403)
- NotFoundException (404)
- ServiceException [500 - 599]
Fixes #2151
* add generated sample code
* use Python 2 flavor inheritance
* regenerate samples
* update samples
Co-authored-by: Ryan Rishi <ryan@ryanrishi.com >
Co-authored-by: William Cheng <wing328hk@gmail.com >
2020-12-05 12:02:00 -08:00
Thomas Hervé
634c4c09e4
Fix generation of map model examples ( #8063 )
...
When generation examples of objects with additional properties, we use
the map syntax inside a model instantiation, which is incorrect. This
fixes it by checking for model at the right place.
2020-12-01 19:04:23 -08:00
Thomas Hervé
3f75691da2
Fix list examples in Python (for real) ( #8034 )
...
The patch in #7967 forgot the prefix, this fixes it, and change the
sampels so that we can see the effect this time.
2020-11-26 14:28:27 -08:00
William Cheng
2578ef5e63
Prepare snapshot (v5.0.0) ( #7986 )
...
* Revert "prepare 5.0.0-beta3 release"
This reverts commit 3ebe774df37b43348bac1310a272de53a2d7040b.
* revert to snapshot
* update samples
2020-11-20 19:19:59 +08:00
William Cheng
2715f1371a
Prepare 5.0.0 beta3 ( #7984 )
...
* prepare 5.0.0-beta3 release
* update samples
* remove beta3 from readme
2020-11-20 15:18:58 +08:00
William Cheng
3bf8ca7484
[python] Renames python generators ( #7965 )
...
* python->python-legacy, python-experimental->python
* test with openjdk8
* test with openjdk11
* comment out rm
* move kotlin tests to circleci
* move kotlin tests
* move tests to circleci
* fix circleci
* rearrange test
* move tests
* use wrapper
Co-authored-by: Justin Black <justin.a.black@gmail.com >
2020-11-18 14:34:00 +08:00
debugman
01d0b5d478
added serialize option in to_dict function in python generated model ( #7555 )
...
* added to_json_dict in python generated model
* update to_dict
* updated to_dict
Co-authored-by: sunkaicheng <sunkaicheng@bigo.sg >
2020-11-05 09:42:35 -08:00
Tomasz Prus
b3bc926b1d
[python] check output content-type only if preload_content is set ( #7847 )
2020-11-04 08:41:00 -08:00
William Cheng
9377dbca56
Add "decimal" support ( #7808 )
...
* rename BigDecimal to decimal
* add isDecimal
* fix tests
* minor fixes
* fix mapping, update doc
* update test spec
* update c# samples
2020-11-02 21:31:32 +08:00
Steve B
ea2cdd23c2
[python] add socket_options to configuration for the rest client ( #7795 )
...
* [python] add socket_options to configuration for the rest client
* (python-experimental) add socket_options to configuration for the rest client
This mirrors work done on the python generator
* (python-experimental) add test to cover socket_options is passed on from configuration
Co-authored-by: steve brazier <steve.brazier@trioptima.com >
2020-10-27 18:22:28 -07:00
Kuzma
4e5ecf271a
[Python] correct return types if multiple responses are defined ( #7427 )
...
* update python mustache templates
* bug fix
* rm response_type
* generated samples
* resolve conflict
* samples
* set None if a type is empty
* regenerated samples
2020-10-03 08:37:08 -07:00
William Cheng
d7dfcc20c0
Add server URL without variables to the test spec ( #7517 )
...
* add server url without variables to the test spec
* fix php tests
* fix tests
* fix assertion
2020-09-28 22:06:42 +08:00
Nicholas Muesch
32c591d9a7
Support multiple api keys in python example documentation ( #7417 )
...
* Support multiple api keys in config option
* Regenerate samples
* Update rest of examples
2020-09-15 13:40:48 -07:00
Ryan Rishi
2d5b2726d0
Subclass Python exceptions ( #7321 )
...
* Subclass Python exceptions:
- UnauthorizedException (401)
- ForbiddenException (403)
- NotFoundException (404)
- ServiceException [500 - 599]
Fixes #2151
* add generated sample code
* use Python 2 flavor inheritance
* regenerate samples
2020-09-05 10:22:04 -07:00
William Cheng
2fd23f505e
Prepare 5.0.0-SNAPSHOT ( #7347 )
...
* Revert "Prepare 5.0.0-beta2 release (#7345 )"
This reverts commit 212b4f7847 .
* update readme
2020-09-04 15:31:54 +08:00
William Cheng
212b4f7847
Prepare 5.0.0-beta2 release ( #7345 )
...
* update version
* update doc
* update samples
2020-09-04 13:03:45 +08:00
Christian Gibson
d37216a411
[python{,-experimental}] Obey floating point timeouts provided to RESTClientObject.request(...) ( #7154 )
...
* [fix] support floating point timeout durations
* [lint] generate samples, rebuild project
2020-08-10 13:11:29 -07:00
Matthew Davis
f15acbc700
clarify direction of py client side validation flag ( #6850 )
...
* clarify direction of py client side validation flag
* change pet store py cli validation disable example
Co-authored-by: Matthew Davis <Matthew.Davis.2@team.telstra.com >
Co-authored-by: EC2 Default User <ec2-user@ip-172-31-37-8.ec2.internal >
2020-07-03 18:39:53 +08:00