Commit Graph

6040 Commits

Author SHA1 Message Date
akihito.nakano
b41774fd87 Fix missing version.properties 2018-03-27 00:30:00 +09:00
wing328
7fbc8fa31e add haskell generator 2018-03-26 22:39:27 +08:00
wing328
246ed57547 restore objc reserved word: property 2018-03-26 17:28:50 +08:00
wing328
0e9dff995c add objc generator and test 2018-03-26 15:50:50 +08:00
wing328
0e6da5bbd5 add original objc geneator and test 2018-03-26 12:00:55 +08:00
wing328
b5da183668 add bash generator and test cases 2018-03-25 16:39:50 +08:00
wing328
af4dcb9cbb add back php test cases 2018-03-25 13:51:17 +08:00
wing328
5326152ccd add option to reorder form/body parameter 2018-03-24 18:47:56 +08:00
wing328
6dc5f7f37b add OAI 3.0 spec for petstore and fake petstore 2018-03-24 16:25:12 +08:00
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
wing328
a8c64f458f fix NPE with requestbody 2018-03-22 21:57:56 +08:00
wing328
f2489b256a fix issues with body parameters 2018-03-19 16:46:45 +08: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
wing328
8851386ac8 comment out enum_string_required in test spec 2018-03-13 23:15:26 +08:00
wing328
f2b28d578f rename plug-in, generator 2018-03-13 14:41:23 +08:00
wing328
4cfbc118e8 renaming for openapi-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
9bd94b4dbb [qt] Fix warning message (#7815)
* [qt] fix warning message

* remove unused model.mustache file
2018-03-12 23:00:45 +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
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
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
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
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
Alberto Sartori
56a0268e39 [elm] missing '->' in Main elm template (#7728) 2018-02-26 23:11:21 +08:00
Adam Conway
ff1178ad7e [Java][Spring] fix optional query params missing in generated swagger (#7607)
* Added genericModelSubstitutes if using Optional

As per https://github.com/springfox/springfox/issues/1848  Doesn't seem to fix the problem, but is what springfox recommends so might be aprt of it.

* Added config package to scans

If you have defined apiPackage and basepackage (e.g. as com.example.api) but not defined configPackage then config is still in io.swagger.config and is not included in the component scan.  This means the config is not used when generating the swagger definition from the code.  Fixed by including configPackage also in the scan.

* Ran spring-all-pestore.sh update script

* Converted tabs to spaces

* Ran spring-all-pestore.sh update script
2018-02-23 00:02:38 +08:00
Adrien CABARBAYE
d4543a99e3 [Java][retrofit2] Fix for Issue #7446 (#7659)
* [Java][retrofit2]  Fix for issue #7446:  file upload sets filename as baseName instead of a dynamic filename. The solution is to use  okhttp3.MultipartBody.Part instead of RequestBody in formParams template.

* Changes corresponding to review comments

* Petstore Samples

* Fixed tests
2018-02-22 21:45:19 +08:00
micheleISEP
edf6be8c07 [Ada] Fix #7569 by defining x-is-model-type when property is local to the YML file (#7655)
* Ada generator generates "=>" (correct syntax) instead of "->". Fixes #7450

* Updated the Ada petstore samples

* Committing "VERSION" file and the rest of the petstore samples

* Changed default project name and package name for Ada, not to have circular dependencies between gpr files.

* Ada code generator now adds x-is-model-type every time a model is defined locally in the YML file.

Fix #7569.
2018-02-22 20:57:15 +08:00
Daniel Zozin
b39c35c768 Fix inconsistency between model name and file name in python client (#7684)
Fixes issue #7357 using the same fix as #4958
2018-02-22 20:56:14 +08:00
wing328
92117b879a fix incorrect indentation in petstore spec 2018-02-22 18:17:28 +08:00
Akihito Nakano
14e1e19803 [PHP] Improve validation on empty arrays (#7686)
* Api should throw exception if an empty array is passed

* Update samples

- bin/php-petstore.sh
- bin/security/php-petstore.sh
2018-02-22 17:15:00 +08:00
nicksanders348
6a81829bb3 remove tab (#7692) 2018-02-22 16:43:44 +08:00
shigeru.nakajima
dcad9ae807 [Rails5] make version of the generated Rails stub server to strict Rails 5.0 (#7700) 2018-02-22 15:57:14 +08:00
Andrew Z Allen
47614bb765 Properly capitalize exported go types (#7636)
Previously if the type was "myEnum" it would be written as

```
type myEnum string

const (
  DEMO MyEnum = "DEMO"
)
```

which would fail because of the capitalization difference. This fixes that.
2018-02-19 00:18:03 +08:00
Ken Gilmer
39fa375e3a [kotlin] Fix NPE for POST/PUT/PATCH with empty request models. (#7629)
* [kotlin] Fix NPE for POST/PUT/PATCH with empty request models.

* [kotlin] Pass content type in empty response as discussed in PR review.
2018-02-18 23:51:02 +08:00