19065 Commits

Author SHA1 Message Date
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
Max
227e2458d4 Update README.md (#7772)
Adding Accruent to list of companies using swagger-codegen
2018-03-08 21:38:17 +08:00
etherealjoy
12f3661d6f Qt5cpp plug memleaks (#7695)
* Small fixes to prevent crash when empty json body is provided.

* WIP: plug mem-leaks

* fixup: add the QJsonObject instance in toJsonArray instead of pointer

* fixup: simplify toJsonMap

Actually the original solution is incomplete, because "innerType" maps to a single C++ type. Have a look at Qt's builtin QJsonObject::fromVariantMap.

* Updates to antis81:patch-1 after tests.

* update to remove string allocation

* Updates due to address of members being passed

* Update PetStore Examples

* Small updates for Header includes
2018-03-07 20:54:40 +08:00
William Cheng
d5f3619199
add JFCote to the core team 2018-03-06 16:21:20 +08:00
wing328
724a8fb05d update java petstore samples (jersey1) 2018-03-05 19:34:34 +08:00
dennistruemper
70b4b55fae Fix performance linting problem with maps in java ApiClient template (#7685)
* Fix performance linting problem with maps

* Fix the other map performance issue as well
2018-03-05 19:12:39 +08:00
Paul Vogel
3bcf0ff764 [PHP] Add path & file separator (/) to return the correct path when deserializing a file (#7671)
* Add path & file separator (/) to return the correct path

Add the separator between the tempFolderPath and the sanitized filename so that the path to the file is correct.

(Fixes #7670)

* Remove separator from generated file

* Add separator

Add the separator between the tempFolderPath and the sanitized filename so that the path to the file is correct.

(Fixes #7670)

* Update sample code

Via ./bin/php-petstore.sh
2018-03-05 10:32:47 +08:00
Andy Kipp
8e0a0ebd62 Fix python / tornado body handling (#7738)
* Handle empty body

* Update petstore
2018-02-28 16:08:17 +08:00
William Cheng
91da14577a
add link to ebay blog post 2018-02-28 14:36:04 +08:00
Per Thomas Lundal
769a65c95f [Elm] Add support for array schemas (#7729)
The following schema definitions kinds are now supported:

MyStringArray:
  type: array
  items:
    type: string

MyObjectArray:
  type: array
  items:
    type: MyObject
2018-02-27 17:58:12 +08:00