12424 Commits

Author SHA1 Message Date
wing328
aafaf64268 add back resource test files for openapi-generator 2018-03-24 16:14:39 +08:00
wing328
01161abe71 rename openapi-generator-cli test folder 2018-03-24 16:03:51 +08:00
wing328
5f9a9bda00 fix array of body parameter type 2018-03-24 00:04:07 +08:00
wing328
1d09962996 fix file, binary array 2018-03-23 21:17:05 +08:00
wing328
7d07458b45 fix issues with form parameter 2018-03-23 18:25:08 +08:00
wing328
ce6efcf5bb fix security 2018-03-23 01:27:41 +08:00
Ben Wells
ea2474d707 Fix strict class initialisation in auth classes (#7860) 2018-03-23 01:12:28 +08:00
wing328
a8c64f458f fix NPE with requestbody 2018-03-22 21:57:56 +08:00
etherealjoy
3b031ed2b8 [qt5cpp] delete callback data allocated before signal emission (#7840)
* Small fixes to prevent crash when empty json body is provided.

* Add deleteLater wrapper for pointers passed to user code to prevent memory leak.

* Updates to move Object Wrapper to separate file

* Add Prefix to class name
2018-03-21 20:51:17 +08:00
Philippe M
d1850091a7 Improve JMeter Template : Fix Issue 7773 (#7774)
* Improve JMeter Template:
In CSV DataSet ignore first line as it contains headers
Share CSV for Thread-Group instead of doing it across all threads
Use scheduler
Add variables definable through properties for:
- Rampup
- Duration
- Threads
Drop HttpClient 3.1 customization
Remove in Test Plan Element host and port as they are defined in User
Variables

* Improve JMeter Template : Fix Issue 7773
This comment #7773
As per request update samples
2018-03-21 20:46:47 +08:00
HugoMario
22f0b8db43
Merge pull request #7882 from swagger-api/issue-7839-null-fields
removed null fields
2018-03-20 21:07:26 -05:00
Hugo Mercado
74fa3b1e13 removed null fields 2018-03-20 18:07:26 -05:00
Martin Delille
fedfb0cda7 Factorize addOption/addSwitch method (#7814) 2018-03-21 00:31:01 +08:00
etherealjoy
73bd24db7d [cpprest] Add support for nested vectors (#7820)
* Small fixes to prevent crash when empty json body is provided.

* cpprest : Add toJson and toHttpContent array support.

* petstore : Run script.

* cpprest : Fix toHttpContent function header.

* petstore : Run script.

* cpprest : Add support for primitive response without enclosing item.

* cpprest : Fix spaces.

* cpprest : Fix build if bodyParam is optional.

* cpprest : Fix vector of vector param.

* Small updates to use utf encoding
Add * operator for ^required
2018-03-21 00:30:17 +08:00
Daiki Matsudate
3b7230b170 [Swift 4] Fix APIHelper to accept array parameter (#7821)
* fix typo

* use URLComponents instead of NSURLComponents

* add encode method for any type

* Add public initializer for modelObject

* change id to _id

* fix APIHelper funcs for array query parameters

* make public to write unit test

* add APIHelperTests

* fix typo

* fix regression
2018-03-21 00:23:47 +08:00
SergeyLyakhov
f023327558 [JAVA] 4709: codegen with parcelableMode fails to build if using arrays in swagger. (#7867) 2018-03-21 00:10:24 +08:00
swavans
f943332d62 Updated version number (#7880)
updated version number of swagger codegen to current stable
2018-03-20 23:59:15 +08:00
William Cheng
8e34f9a98b
update to newer version of ruby (#7879) 2018-03-20 23:58:47 +08:00
Sergey Petrachkov
9443179d10 Update README.md (#7877)
add actonica to the list of users
2018-03-20 23:58:31 +08:00
wing328
f2489b256a fix issues with body parameters 2018-03-19 16:46:45 +08:00
garte
f9b2839a30 Check date value before calling to_iso8601 (#7769)
* Check date value before calling to_iso8601

When deserializing a date value the value has to be a string when
calling to_iso8601. Otherwise it fails with a match error due to a
is_binary() guard.

* Fix: to_iso returns tuple with three values.
2018-03-19 15:15:38 +08:00
HugoMario
9d85c82cdd
Merge pull request #7864 from swagger-api/issue-7839
added config to yaml mapper to minimize long text.
2018-03-18 07:47:21 -05:00
wing328
6b65b02c56 fix 2.0 spec exception, fix NPE with Parameter 2018-03-18 17:12:59 +08:00
wing328
7b1c7255a7 fix NPE, add new files 2018-03-18 15:28:34 +08:00
wing328
b471fbcc92 project build succecced, only suppport ruby generator 2018-03-18 14:14:46 +08:00
Hugo Mercado
96a9ba16d9 added config to yaml mapper to minimize long text. 2018-03-16 17:50:50 -05:00
Yukio Ejiri
e22faf4cd3 [Swift] Add public initializer for modelObject. (#7652)
* Add public initializer for modelObject.

* Update samples.

* Use allVars instead of vars.

* Fix code format.
2018-03-16 00:56:00 +08:00
Martin Delille
b5eb0e7de8 Candidature to integrate Qt technical commitee (#7834)
* Candidature to integrate Qt technical commitee

* move to c++ technical commitee
2018-03-15 20:58:52 +08:00
etherealjoy
e796e4c369 [C++] Add linux as a reserve keyword (#7844)
* Small fixes to prevent crash when empty json body is provided.

* Add linux as a reserved keyword

* Small reorder of introduced keyword
2018-03-15 20:41:42 +08:00
Martin Delille
d82499944b Adding qt project generation fix #7784 (#7799)
* starting adding qt project generation

* update sample after running bin/qt5-petstore.sh

* Add Project.mustache starter

* Fix processOpts function

* Write Project.mustache

* Add prefix
2018-03-15 00:31:03 +08:00
wing328
8851386ac8 comment out enum_string_required in test spec 2018-03-13 23:15:26 +08:00
wing328
721f1c7720 update ruby samples 2018-03-13 14:45:42 +08:00
wing328
4cfbc118e8 renaming for openapi-generator 2018-03-13 14:41:23 +08:00
wing328
f2b28d578f rename plug-in, generator 2018-03-13 14:41:23 +08:00
Jérémie Bresson
25a6a9d444 html: fix typo in class name (#7818)
* html: fix typo in class name

* Update "html" samples
2018-03-13 00:08:48 +08:00
William Cheng
e7f4fb3c45
Fix nodejs-server path issue in windows platform (#7808)
* fix nodejs-server path issue in windows platform

* only replace character in apiPackage
2018-03-12 23:21:07 +08:00
Martin Delille
1bb1e44d18 [qt5cpp] Remove qt5 pro.user file (#7813) 2018-03-12 23:17:39 +08:00
Martin Delille
9bd94b4dbb [qt] Fix warning message (#7815)
* [qt] fix warning message

* remove unused model.mustache file
2018-03-12 23:00:45 +08:00
William Cheng
7ef373f4d4
add ramzimaalej to scala tech committee 2018-03-10 13:20:44 +08:00
William Cheng
9e3d8d1c82
add etherealjoy to cpp tech committee 2018-03-10 11:37:03 +08:00
wing328
ff5edfb97a comment out python tornado test due to ssl error 2018-03-09 18:28:43 +08:00
lborupj
e73eeb4fdf fix for stripping prefix on single enums (#7726) 2018-03-09 14:33:34 +08:00
etherealjoy
1947220159 Qt5cpp plug memleaks part2 (#7792)
* Small fixes to prevent crash when empty json body is provided.

* Fix some more memory Leaks in the model-body
- Members not deleted in cleanup() method, for maps/arrays of primitive types.
- Avoid undefined behavior when updating class members with data from missing json fields
2018-03-09 00:19:45 +08:00
Simon Sprünker
f00a1ef52c [JAVA] Fix #7734: Correct consumes/produces attributes for Spring Controllers (#7760)
* fix #7734: Correct consumes/produces attributes for Spring Controllers

* fix #7734: Update petstore
2018-03-08 22:56:43 +08:00
Charles Capps
4eeb974cb6 [Java][google-api-client] Fix bug with empty POST request not sending content-type (#7787)
* Add overloaded method to take an InputStream for the request body, and fix a bug with collections

* Use fully qualified name for InputStream to avoid potential conflicts

* Add support for Input Stream choosing content type, and fix a bug

* Ensure GET requests send an empty request body!
2018-03-08 22:51:49 +08:00
Alexander Zinovyev
cf8d8d56fb [PHP] Fix code example from README. Variable name was missing when using Basic auth. (#7777) 2018-03-08 22:36:35 +08:00
Ramzi Maalej
832919b84c Remove unused dep when model package is empty (#7793) 2018-03-08 22:23:01 +08:00
Dennis Frommknecht
53eeb0c049 fix connection leak on retrofit OAuth token renewal (#7750) 2018-03-08 22:00:22 +08:00
Akihito Nakano
0adbf7e51f [PHP] Improve: update sample tests automatically (#7717)
* Improve: update sample tests automatically

* security test

* Update sample

- bin/php-petstore.sh
- bin/security/php-petstore.sh

The security test has not been updated for a while.
2018-03-08 21:56:48 +08:00
Akihito Nakano
32cf2f16f5 [PHP] Non required enum property (#7723)
* Add required enum property

* Update samples

* Add test case which reproduce the problem

refs https://github.com/swagger-api/swagger-codegen/pull/7686#issuecomment-368200011
> 2. Non-required enum property is listed as invalid when omitted

* If the property is not empty, perform validation

* Update samples

* Use is_null() according to setter implementation

refs 377247f125/modules/swagger-codegen/src/main/resources/php/model_generic.mustache (L347)

* Update samples
2018-03-08 21:54:34 +08:00