Amelia Raia
d8cb6bd894
Allow the user to pass in any headers per request. #11139 ( #11140 )
...
* [Python] Allow the user to pass in any headers per request
* Update docs
* Update docs
Update Docs _headers
* Add test
Co-authored-by: Rizwan Saeed <rizwan.saeed@finbourne.com>
2022-01-13 15:25:40 -08:00
carmenquan
478219744e
Making PyPi markdown friendly requires additional property ( #11093 )
...
* updating python markdown property
* adding to samples
2022-01-09 08:22:11 -08:00
Ignacio Campos Rivera
8c090c978d
feat(python-asyncio): add support for proxy config using system env vars ( #11171 )
...
Co-authored-by: Ignacio Campos <ignacio.campos@global.ntt>
2022-01-04 15:08:03 +08:00
Justin Black
ac55ac9d55
Samples and docs regenerated ( #11194 )
2021-12-28 11:39:13 -08:00
William Cheng
6269a9810c
Prepare 5.3.1 release ( #11161 )
...
* prepare v5.3.1 release
* update samples
2021-12-21 18:20:13 +08:00
Tomasz Prus
e9f2ccde67
[Python] Add option to select content-type using body or force it for… ( #10686 )
...
* [Python] Add option to select content-type using body or force it for API call
* Add support for application/json-patch+json
* Add unittests.
2021-11-22 08:41:04 -08:00
William Cheng
378465702c
Prepare v5.3.1 in the master ( #10681 )
...
* prepare v5.3.1
* update doc
* update readme
2021-10-25 01:16:07 +08:00
Tomasz Prus
b1950dd488
[Python] Remove virtualenv deprecated option from test scripts. ( #10666 )
...
* [Python] Remove virtualenv deprecated option from test scripts.
* [Python/asyncio] create venv with Python 3.x
2021-10-22 17:32:44 -07:00
William Cheng
477e2365c7
improve git_push.sh ( #10356 )
2021-09-09 12:49:03 +08:00
Nathan Baulch
5d68bd6a03
Fix thousands of spelling typos ( #10272 )
2021-08-28 22:58:24 +08:00
William Cheng
0204bf4ae2
Squashed commit of the following:
...
commit c5a0d0f7394aa742fa336fff7e7c1d3049761868
Merge: 8c4991ba3ed f8ff8c87609
Author: William Cheng <wing328hk@gmail.com>
Date: Tue Aug 17 18:28:12 2021 +0800
Merge branch 'mustache-linting' of https://github.com/NathanBaulch/openapi-generator into NathanBaulch-mustache-linting
commit f8ff8c87609b1ca36fa26fb8474806999638195e
Author: Nathan Baulch <nathan.baulch@gmail.com>
Date: Thu Aug 5 14:12:47 2021 +1000
Reorder tags that handle missing values
commit f5d8a33709d6a3f846a9fe4520b78c3d637051d9
Author: Nathan Baulch <nathan.baulch@gmail.com>
Date: Thu Aug 5 14:08:59 2021 +1000
Use dot notation where possible
commit 493d14921e2333f3ae19ef6fc89318b7e263a80c
Author: Nathan Baulch <nathan.baulch@gmail.com>
Date: Thu Aug 5 14:10:49 2021 +1000
Remove empty tags
commit 32480dc53f48227d55531b94e307d72671373737
Author: Nathan Baulch <nathan.baulch@gmail.com>
Date: Thu Aug 5 10:41:58 2021 +1000
Remove redundant sections
commit a8edabd722c34aa094b4aeb11c22664529c3a219
Author: Nathan Baulch <nathan.baulch@gmail.com>
Date: Wed Aug 4 22:02:22 2021 +1000
Trim extra EOF new lines
commit e89bd7458e3594bf0d30e580bc9408e45b018a57
Author: Nathan Baulch <nathan.baulch@gmail.com>
Date: Wed Aug 4 21:59:26 2021 +1000
Trim trailing whitespace
2021-08-17 18:37:51 +08:00
William Cheng
39fbf53150
create v5.3.0
2021-07-10 00:12:23 +08:00
William Cheng
02835b35bc
Prepare v5.2.1 ( #9922 )
...
* bump verions to 5.2.1-SNAPSHOT
* update samples
* update readme
* fix gradle properties
2021-07-09 22:42:31 +08:00
William Cheng
90f7bcd909
Prepare v5.2.0 release ( #9920 )
...
* 5.2.0 release
* update samples
* update meta codegen
2021-07-09 17:06:55 +08:00
William Cheng
be214dc349
Merge remote-tracking branch 'origin/master' into 5.2.x
2021-05-07 10:15:12 +08:00
William Cheng
560bf7e080
v5.1.1 release ( #9421 )
2021-05-07 09:57:19 +08:00
johnthagen
a88313c40c
[Python] Avoid DeprecationWarning in inspect.getargspec on Python 3 ( #9271 )
...
* Avoid DeprecationWarning in inspect.getargspec on Python 3
* Regenerate samples
2021-04-30 11:59:33 -07:00
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
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
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
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
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
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
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
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 212b4f784742744b7b238607dcefb23ec9db64d7.
* 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
William Cheng
61789475ea
update python samples
2020-07-03 18:51:31 +08:00
Jiri Kuncar
8b9c070e5d
[Python] Support for per-operation servers ( #6557 )
...
* Dynamic server support
* regenerated
* Apply suggestions from code review
Co-authored-by: Thomas Hervé <thomas.herve@datadoghq.com>
* regenerated
* Add ParameterizedServer feature to Python experimental
* Fix lookup of server variables
* Add tests and change default value for servers
* Fix server variables
* Return base path when index is None
* Use HOST
* Apply suggestions from code review
* Apply suggestions from code review
* regenerated
* Add specific tests for dynamic servers
* regenerated
* add docstring
* regenerated
* Fix wrong merge resolution
Co-authored-by: Thomas Hervé <thomas.herve@datadoghq.com>
2020-06-25 21:28:54 -07:00
Jiri Kuncar
046ba7de8e
[feature][python] Support aliasing of API keys ( #6469 )
...
* [python] Support aliasing of API keys
* Support for aliasing and prefix
* Make more realistic usage
* Regenerate
* Document alias in generated code
* Support override of aliased keys
* Use diferent id and name for api keys
* ensure up-to-date
* Simple example without x-auth-id-alias
* regenerate docs
* Regenerate
* Provide separate spec for x-auth-id-alias
* Apply suggestions from code review
* regenerated
2020-06-11 09:19:57 -07:00
Warren Gray
933ab0640a
[python-client] Enable per-request auth settings ( #6569 )
...
* Enable per-request access token in Python client.
* Add missing regenerated sample files.
* Rework to the more general case of overriding the auth settings for a request.
* Add unit tests.
* Update api_client.mustache so that request_auth overrides all other auth settings when specified.
2020-06-10 23:40:10 -07:00
Jim Schubert
835dab4b50
Fix typescript generator for parameter collectionFormat for pipes ssv ( #6553 )
...
Co-authored-by: David Biesack <David.Biesack@apiture.com>
Co-authored-by: William Cheng <wing328hk@gmail.com>
Co-authored-by: Vikrant Balyan <vvb@users.noreply.github.com>
Co-authored-by: Michele Albano <michele.albano@gmail.com>
Co-authored-by: Esteban Gehring <esteban.gehring@bithost.ch>
2020-06-05 19:32:32 -04:00
Alexey Volkov
6f6c8ede79
[Python] Fixed docstrings in api.mustache ( #6391 )
...
* [Python] Fixed docstrings
Fixes https://github.com/swagger-api/swagger-codegen/issues/9630
* Updated generated files
* Fixed python-experimental
* Updated generated files
* Fully fixed the format of the docstrings
* Updated generated files
* Updated generated files in openapi3
2020-06-04 08:46:35 -07:00
Jim Schubert
70ca93570e
[core][general] Add metadata file tracking to aid in "Golden Tests" regeneration ( #6325 )
2020-05-22 16:48:32 -04:00
Sebastien Rosset
b4954b0d80
[codegen][python-experimental] Add configuration knob to disable JSON schema validation ( #6227 )
...
* Add knob to disable JSON schema structural validation
* Add knob to disable JSON schema structural validation
* Fix formatting issues
* execute sample scripts
* execute sample scripts
* fix multipleOf validation issue
* Add validation log for multipleOf. Add customizable validation checks. add unit tests for JSON schema validation
* Add validation log for multipleOf. Add customizable validation checks. add unit tests for JSON schema validation
* Add validation log for multipleOf. Add customizable validation checks. add unit tests for JSON schema validation
* Add validation log for multipleOf. Add customizable validation checks. add unit tests for JSON schema validation. Fix for python 2
* address review comments
2020-05-17 09:11:01 -07:00
William Cheng
15794f8026
Fix build failure due to flake8 ( #6265 )
...
* fix flake8 folder
* fix flake8 folder in python2
* comment out flake8
* comment out flake8
* comment out flake8
* comment out flake8
* comment out flake8
2020-05-12 21:41:55 +08:00
William Cheng
4effa739eb
Add AnyType support to Java generators ( #6246 )
...
* add anytype support to java
* fix test
* fix primitive type
* update tests
* update samples
2020-05-11 15:27:03 +08:00
Sebastien Rosset
fa37a696a8
[python-experimental] Raise builtin AttributeError instead of custom ApiKeyError ( #6229 )
...
* Use AttributeError instead of ApiKeyError because that's what the hasattr builtin function uses
* Use AttributeError instead of ApiKeyError because that's what the hasattr builtin function uses
* fix unit tests
* create ApiAttributeError exception
* fix formatting
* run samples scripts
2020-05-10 19:02:41 -07:00