Beppe Catanese
68b944e6e6
Preserve order of securitySchemes ( #14536 )
...
* Remove alphabetical sort
* Update integration testing expectations
* Regenerate files
2023-02-10 22:20:19 +08:00
William Cheng
0cf5ed619d
Add a new Python client generator - python-nextgen ( #14157 )
...
* add python-nextgen generator
* remove client_side_validation from model
* remove configuraiton import from models
* add inheritance support
* update test requirements, tox
* add typings, pydanic to models
* add test model
* minor improvements
* add enum support
* add typing for parameters, remove validations
* add oneof, anyof support
* fix default value
* fix deserialization, api tests passed
* private variable naming, update tests, all tests passed
* remove six
* remove nose
* update doc
* remove sortParamsByRequiredFlag option
* add parameter validation
* add validation tests
* simplify Field()
* remove previous required parameter validation
* improve parameter handling
* support discriminator mapping
* better typing discriminator mapping
* format test code
* fix tests
* fix oneOf from_dict, add test
* add set validation test
* fix nested oneof serialization, add tests
* add model import
* remove models. prefix
* remove import models
* remove model import from api
* simplify from_dict
* add typing for return
* skip pydantic import in return type
* fix tests, fix enum
* restore more enum schema tests
* uncomment enum integer test
* clean up getfullargspec import in model
* clean up getfullargspec import
* fix deserilizatoin for nested oneof
* minor fixes, add tests
* fix regular expression
* add aiohttp samples, add tests
* remove default content type to json
* update template
* fix select accept, content-type
* move tests
* move tests
* fix url query parameters
* fix list
* fix samples
* fix param pydantic, add list as reserved word
* fix auto-generated doc
* fix readme
* fix list, fix special variable name with var_
* fix Literal in python 3.7
* fix default configuration
* fix aiohttp tests
* set default api client instance
* deprecate get_default_copy method
* fix enum model
* fix enum serializatio/deserialization
* add github workflow support
* add regular expression validator
* add enum validator
* better model import
* fix file, remove x-py-import-models
* rename local var
* better model example
* fix regular expression warning, add special_name test, whitelist schema
* skip self import
* update samples
* various fixes
* add base64, json as reserved word
* add http signature support
* add http signature test
* add additioanl properties support in python client
* add decimal support
* use strictstr instead of constr
* fix test with virtualenv
* add nullable support
* add readonly support
* add model name caching
* fix circular reference import
* add onelook discriminator lookup
* add tests
* update samples
* fix locale
* Fix client legacy generator asyncio README code example
* test python-nextgen in circleci
* fix pom.xml
* update python to 3.7.15
* test with python 3.7.12
* various updates
* fix python legacy
2022-12-17 16:05:47 +08:00
Nathan Baulch
9f1fa0e440
Fix another batch of spelling typos ( #13915 )
...
* Fix typos
* Remove repeated words
* Minor grammar fixes
2022-11-07 21:30:24 +08:00
Julian Taylor
3dc8403e10
[Python] pass api_client configuration to model deserialize ( #13922 )
...
The if not passed the models create a new configuration object which
configures logging and determines cpu count every time.
This causes extreme performance issues when deserializing larger sets of
items.
See also
https://github.com/kubernetes-client/python/issues/1921
2022-11-07 09:05:14 +01:00
William Cheng
c26e19cbc0
Revert "Add support for string response deserialization ( #12910 )"
...
This reverts commit b8524bee232a55e28693354ab543b91e3f65629a.
2022-07-21 12:58:46 +08:00
Emanuele Saccomandi
b8524bee23
Add support for string response deserialization ( #12910 )
...
* Add support for string response deserialization
* updated samples
* updated samples
* realigned to master
* fix: errors were not getting thrown
* updated samples
* fix: errors were not getting thrown
* updated samples
2022-07-21 12:45:50 +08:00
William Cheng
4ee5f72214
Use LinkedHashMap for deterministic iteration order ( #12230 )
...
* to LinkedHashMap
* LinkedHashMap
* allModels to LinkedHaskMap
Co-authored-by: yilinwang <linda.yilin@gmail.com>
2022-04-25 13:33:24 +08:00
Daniel Qian
41451ff5ee
fix #11958 [BUG] python generates wrong model name and model file name ( #11959 )
...
* fix #11958 [BUG] python generates wrong model name and model file name
Modify AbstractPythonCodegen.toModelName just like AbstractJavaCodegen.toModelName
* add unit test
* update samples and docs
by
./bin/generate-samples.sh
./bin/utils/export_docs_generators.sh
* fix AbstractPythonCodegen#toModelName logic, remove underscore
* update samples and docs
by
./bin/generate-samples.sh
./bin/utils/export_docs_generators.sh
2022-04-01 19:43:08 -07:00
Matthew Fernandez
61245fc52b
[Python] abbreviate dictionary membership testing idiom ( #11905 )
...
This is a more brief and efficient way of accomplishing the same thing.
2022-03-23 01:28:02 +08:00
Kuan-Yin Chen
ab63786610
[Python] remove default content-type in the request ( #10782 )
...
* remove default content-type in the request
* add remove default content-type test
* fix duplicate content type
* update sample
* add missing params
* update sample
* only assign content type if exist
* update sample
* update sample
* format code
* update sample
2022-02-24 12:08:49 +08:00
William Cheng
5346d0b6b7
update samples
2022-02-14 11:45:12 +08:00
jiangyuan
dce8b80af7
[Python] fix api file name & api var name ( #11051 )
...
* fix api filename
* fix PythonCodeGen toApiVarName
* add samples change
2022-02-14 11:27:13 +08:00
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
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
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
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
adpoliak
a4312412fc
[PYTHON] use customized default Configuration() objects if configured by the programmer ( #8500 )
2021-01-29 16:24:10 -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
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