Hamed Ramezanian
34f1e36146
Sanitize tuples properly ( #3949 )
...
* Sanitize tuples properly
In Python, Tuples are fixed size in nature whereas lists are dynamic. So
they should be sanitize as same as lists.
Failure case here is when you have a query or post parameter as
Datetime.
* Update the Petstore sample
* Skip file sanitization
* Return tuple instead of list
* Sanitize all tuples, no exceptions
2016-10-13 14:41:40 +08:00
Ville Skyttä
c43286c569
Python collection formatting fixes/support ( #3697 )
...
* python: Rework form data collection formatting support
* python: Add/fix support for query string collection formatting
* python: Add/fix support for path collection formatting
* python: Add/fix support for header collection formatting
2016-09-02 16:17:46 +08:00
Ville Skyttä
8e7d3d1a72
Python fixes ( #3689 )
...
* python: Fix unsupported method exception message
* python: Implement form data collection formatting
2016-09-01 15:05:52 +08:00
wing328
343ca03512
Merge branch 'issue-3647' of https://github.com/zbiro/swagger-codegen into zbiro-issue-3647
2016-08-31 00:25:06 +08:00
Ville Skyttä
224fd208e7
Various python cleanups ( #3650 )
...
* python: Let logging format messages on demand
* python: Use six more
* python: Remove unused imports
* python: flake8 fixes
* python: Make examples compatible with Python 3
* python: Spelling fixes
2016-08-30 10:16:17 +08:00
Zoltan Biro
646c4faa62
fixing python code formatting issue
2016-08-29 16:53:38 +02:00
Zoltan Biro
10aa68c6b7
Fix empty model object serialization in python client
2016-08-29 16:08:45 +02:00
wing328
89befeb45b
fix long issue in python3
2016-07-07 22:17:27 +08:00
wing328
41e8273cb8
Merge branch 'master' of https://github.com/maneeshsahu/swagger-codegen into maneeshsahu-master
2016-07-07 19:13:29 +08:00
wing328
88ce868bd5
Merge branch 'new_python_with_http_info' of https://github.com/zhenjun115/swagger-codegen into zhenjun115-new_python_with_http_info
...
Conflicts:
modules/swagger-codegen/src/main/resources/python/api.mustache
samples/client/petstore/python/swagger_client/__init__.py
samples/client/petstore/python/swagger_client/api_client.py
samples/client/petstore/python/swagger_client/apis/pet_api.py
samples/client/petstore/python/swagger_client/apis/store_api.py
samples/client/petstore/python/swagger_client/apis/user_api.py
samples/client/petstore/python/swagger_client/models/__init__.py
samples/client/petstore/python/swagger_client/models/name.py
2016-06-20 11:58:35 +08:00
Maneesh Sahu-SSI
6c350a7d2d
Added long to primitive data types supported in Python codegen
2016-06-15 13:43:36 -07:00
Takuro Wada
955d39f709
[Python] Follow PEP8 rules ( Issue #3041 )
2016-06-05 23:15:36 +09:00
zhenjun115
67c3f98d96
enable python api client to return just data without http header info when need;
2016-06-04 23:30:10 +08:00
wing328
f44e5faf1b
add http info support for python
2016-04-08 22:00:27 +08:00
Scott Williams
4e5ba15fa0
Issue 2410: Suport HTTP body for DELETE operation
2016-03-19 16:51:02 +00:00
wing328
be7a49385f
set default user default for ruby, php, python, java
2016-03-15 11:41:47 +08:00
Scott Williams
a6fe87a52a
Use more appropriate variable name
2016-02-07 23:34:04 +08:00
Scott Williams
2407c494e7
Change post_param from dict to list of tuples to allow list of files
2016-02-07 23:33:27 +08:00
Scott Williams
833ce25cab
Change post_param from dict to list of tuples to allow list of files
2016-02-07 23:33:15 +08:00
Scott Williams
5ac630f7ff
Fix for issue #2036 , python client wont upload list of files
2016-02-07 23:32:52 +08:00
Ron
3a2ad9e2e4
Happy new year!
2016-01-06 16:04:16 -08:00
Bob Pasker
dfae08adc8
in Python, a method as the default value of a formal parameter defines the value when the module is loaded (normally at import
time), not when the method is invoked
2015-12-31 18:10:19 -05:00
wing328
271661aec7
update python auth to skip empty token/username,password
2015-11-20 17:01:21 +08:00
geekerzp
9b148be57e
Fix issue in python client.
...
If upload only file it will not send file content.
2015-09-25 15:10:32 +08:00
geekerzp
a26cf60a22
Revert "Revert "[Python] Fix issue in python client""
...
This reverts commit c59e2b88b18193bc6a0ea85aebc64dcb97b73cdb.
2015-09-24 10:08:16 +08:00
wing328
c59e2b88b1
Revert "[Python] Fix issue in python client"
2015-09-24 09:30:49 +08:00
geekerzp
13c079342e
Fixed issue #1262
2015-09-23 14:55:46 +08:00
DariusM
65f86dbb0f
unicode type forgotten in api_client.mustache for python2, works also with python3
2015-09-17 10:31:40 +02:00
DariusM
cc1c495ea5
unicode type forgotten in api_client.mustache
2015-09-17 10:26:08 +02:00
Justin Chines
85df7c8ed7
[DOC] fix typo in Python api_client template
2015-09-16 22:09:01 -07:00
geekerzp
ade61c0701
Support http body in OPTIONS request in python client
2015-09-15 17:48:59 +08:00
geekerzp
bd63c1d9d9
Support OPTIONS http verb in python client.
2015-09-15 16:40:23 +08:00
sparrow.jang
ba701be2f2
fixed a empty object for response
2015-09-04 15:20:34 +08:00
geekerzp
b3d28f07f1
Add option verify_ssl
to switch SSL/TLS verification.
2015-08-25 17:58:14 +08:00
wing328
2251a2f892
fix typo, update documentation for python lib
2015-08-24 21:08:21 +08:00
wing328
1c1571cc3a
Merge pull request #1106 from geekerzp/python-query
...
[Python] Fix issue that missing query parameters in python client.
2015-08-23 17:11:19 +08:00
geekerzp
dc423cc11d
Fix issue that Mssing query parameters in python client.
2015-08-22 17:46:13 +08:00
geekerzp
894d571ea5
Change reserved word handling in python client.
...
* First, remove the beginning underscores.
* Then, append underscore if the var is reserved word or number.
2015-08-19 18:05:47 +08:00
Marcos Prieto
cad2f961bd
Undo unicode on sanitize method. Keep the PR on point
2015-08-06 10:21:56 +02:00
Marcos Prieto
befacc41bd
Support for nested dict/list
...
Checking for `startwith` instead of just `in` to correctly categorize
nested structures.
2015-08-04 11:51:38 +02:00
Marcos Prieto
edebbcb802
Support for unicode headers, ie support for urlib3.util.make_headers
2015-08-04 11:51:25 +02:00
geekerzp
b51ef77401
Remove #!/usr/bin/env python
from python client
2015-07-28 11:25:19 +08:00
geekerzp
3265ec0f72
Refactor python client.
2015-07-28 11:25:19 +08:00
Sparrow.jang
75711f954b
fixed a bug for parsing )
error
2015-07-27 18:50:32 +08:00
Ondrej Novy
50736458d0
Allow to set cookie in python(3) API constructor.
2015-07-24 11:48:43 +02:00
geekerzp
60d6cd744a
Format python client using pep8
2015-07-18 14:30:19 +08:00
geekerzp
8746f1544b
Merge branch 'develop_2.0' into python-enum
2015-07-16 17:27:17 +08:00
geekerzp
f0e09ae33a
Add enum support for model property of python client
2015-07-16 17:24:42 +08:00
geekerzp
33561fa159
Support date type in python client
2015-07-16 10:11:27 +08:00
geekerzp
4d302683f3
Update logging of python client
2015-07-15 15:58:45 +08:00