Commit Graph

9496 Commits

Author SHA1 Message Date
wing328
a4c0975aa4 [R] Add new R client generator (#6351)
* add r client codegen

* update r api, model templates

* various fix

* rename Json to JSON

* more enhancements

* fix json handling

* add file upload support, var name to handle hyphen

* use httr::upload_file
2017-09-04 00:21:32 +08:00
wing328
c1f5de91bb add comment, update ruby, php samples 2017-09-03 23:20:55 +08:00
Daniel Ochoa Rodríguez
cfa2074802 Fix Uuid parse (#6382)
* Fix Uuid parse

* Add isString = true when property is Uuid

This will not break previous code

* Update conversionBegin.mustache

* Update conversionEnd.mustache
2017-09-03 23:10:25 +08:00
Giacomo
a1c1a82725 - Added javax.validation.Valid annotation to modules/swagger-codegen/… (#6398)
* - Added javax.validation.Valid annotation to modules/swagger-codegen/src/main/resources/JavaJaxRS/spec/bodyParams.mustache
- Added bean validation and api description to modules/swagger-codegen/src/main/resources/JavaJaxRS/spec/headerParams.mustache
- Added api description to modules/swagger-codegen/src/main/resources/JavaJaxRS/spec/queryParams.mustache
- Added interfaceOnly parameter management to modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/JavaJAXRSSpecServerCodegen.java to generate only interfaces and models.
- Added interfaceOnly parameter management to modules/swagger-codegen/src/main/resources/JavaJaxRS/spec/api.mustache
- Added throws java.lang.Exception to modules/swagger-codegen/src/main/resources/JavaJaxRS/spec/api.mustache

* Run ./bin/jaxrs-spec-petstore-server.sh

* jaxrs-spec: javax.validation.Valid model attributes for array items

* Run ./bin/jaxrs-spec-petstore-server.sh
2017-09-03 22:45:35 +08:00
Florent Chamfroy
5007a1b1ba Problem with enumOuterClass (#6428)
rewrite enumOuterClass based on modelEnum in Java swagger-codegen
templates.

https://github.com/swagger-api/swagger-codegen/blob/master/modules/swagger-codegen/src/main/resources/Java/modelEnum.mustache
2017-09-03 22:36:10 +08:00
jaz-ah
19694ae4e3 [Swift3] Make sure decode doesn't fail on optional arguments (#6423)
* two fixes: 1) extra ?'s at end of some url's 2) enums not being called out w/ rawValue to get the proper string name

* update samples

* one step closer

* closer implementation

* break on optional decode failing since it's an optional we don't want to fail the whole decode

* update samples
2017-09-03 22:30:42 +08:00
jaz-ah
b19fa25521 [Swift3] Missing decoders for Array elements (#6422)
* two fixes: 1) extra ?'s at end of some url's 2) enums not being called out w/ rawValue to get the proper string name

* update samples

* one step closer

* closer implementation

* add back in array decoders

* regenerate samples
2017-09-03 22:30:21 +08:00
wing328
d22ee7c779 add lukoyanov to java tech comm 2017-09-02 23:02:02 +08:00
wing328
1f2730c587 Revert "Revert "[Java][Retrofit2] Return ResponseBody if response is "file"" (#6421)" (#6426)
This reverts commit a6561e7d21.
2017-09-02 21:33:55 +08:00
Rene Cacheaux
da8f1e58bd [Swift4] Updates syntax in Codable helper template. (#6417) 2017-09-02 18:33:38 +08:00
wing328
1097375d7f fix file upload in retrofit2 (without play) (#6425) 2017-09-02 17:35:46 +08:00
wing328
2a011d0a1e update retrofit2 petstore samples 2017-09-02 01:31:00 +08:00
wing328
a6561e7d21 Revert "[Java][Retrofit2] Return ResponseBody if response is "file"" (#6421)
* Revert "Make the Rust codegen compile. (#6411)"

This reverts commit 60766c6210.

* Revert "[Kotlin] Fix model enum generation (#6383)"

This reverts commit adf5d643d5.

* Revert "Global namespaces for ruby basic types (#6418)"

This reverts commit 070894dc95.

* Revert "add ehyche to swift tech comm"

This reverts commit 5c62ba182e.

* Revert "[python-client] Thread pool fix (#6396)"

This reverts commit a28ce0b604.

* Revert "update retrofit2 petstore samples"

This reverts commit 0f1a61d9c2.

* Revert "Retrofit2: Return ResponseBody if response if file. (#6407)"

This reverts commit 481c040373.
2017-09-02 01:26:42 +08:00
Ahmed Charles
60766c6210 Make the Rust codegen compile. (#6411)
* Use the right package name for the Rust crate.

* Change getters on models to return Option for non-required fields.

* Cleanup Rust generation and get example compiling again.

* Use underscore names for functions.
2017-09-02 00:06:55 +08:00
Christian Röder
adf5d643d5 [Kotlin] Fix model enum generation (#6383)
Run postProcessModelsEnum on model enums, so that enumVars get populated,
and fix the model enum template.
2017-09-01 23:11:21 +08:00
Gleb Sinyavsky
070894dc95 Global namespaces for ruby basic types (#6418)
File here will be overriden by generated class File of swagger.yml containse the definition named File. Using global namespace can fix it
2017-09-01 22:56:47 +08:00
wing328
5c62ba182e add ehyche to swift tech comm 2017-09-01 22:55:38 +08:00
Darshana Sanjeewan Adikari
a28ce0b604 [python-client] Thread pool fix (#6396)
* [python-client] Added close() and join() for threadpool at ApiClient destructor.

* Updated stuff for CI
2017-09-01 18:18:03 +08:00
wing328
0f1a61d9c2 update retrofit2 petstore samples 2017-09-01 17:14:43 +08:00
craffael
481c040373 Retrofit2: Return ResponseBody if response if file. (#6407)
Until now
--------------------
If a swagger endpoint returned a file (e.g. an image), then the Retrofit2
template has choosen the return type java.io.File. However, retrofit cannot
deal with this and throws a com.google.gson.stream.MalformedJsonException.

New:
-------------------
If a swagger endpoint returns a file, then the corresponding Retrofit2 endpoint
will return a okhttp3.ResponseBody which can be used to retrieve the file.
2017-09-01 17:01:15 +08:00
wing328
5a533a2f00 use another id for bbdouglas (java tech comm) 2017-09-01 16:50:32 +08:00
lukoyanov
a2c4f0baf4 [Java] Implemented support for Play! 2.5.x (java8) for retrofit2 client (#6007)
* Implemented support for Play! 2.5.x / java8

* Added petstore sample for play25

* implemented play25 support
implemented version switch via playVersion config option

* fixed compilation failure after merge

* Disabled generation of CustomInstantDeserializer if dateLibrary equals to java8
2017-08-31 23:02:09 +08:00
wing328
3ea74619c0 add farcaller to rust tech comm 2017-08-31 22:50:01 +08:00
Shimin Guo
37f48239b0 Map ByteArray to Text for haskell codegen (#6402)
* Support ByteArray in haskell codegen

* update petstore example
2017-08-31 10:19:42 +08:00
johnjcsmith
8ec98a2ac4 Fixes a small typo in README.md (#6409) 2017-08-31 10:11:58 +08:00
wing328
e78eae7cd4 add bkryza to bash tech comm 2017-08-31 02:09:21 +08:00
Jean-François Côté
d80c0f5546 [Java Play Framework] Fix a small error of using paramName instead of baseName (#6395)
* Fix a small error of using paramName instead of baseName

* Add sample generation
2017-08-30 17:58:24 +08:00
wing328
9fb8e637fa add jfiala to java tech comm 2017-08-30 16:41:38 +08:00
wing328
cd391d651c add daurnimator as lua tech comm 2017-08-30 16:28:28 +08:00
wing328
5721177212 add sreeshas to java tech comm 2017-08-30 01:06:57 +08:00
wing328
274675bb2b add presentations to swagger codegen 2017-08-30 00:43:48 +08:00
David Fischer
506c58ec74 [JaxRS] Fix response annotation generation (fixes #2588) (#6373)
* [JaxRS] Fix response annotation generation (fixes #2588)

* [JaxRS] Fix jaxrs jersey1 usetags sample provider

* Revert "[JaxRS] Fix jaxrs jersey1 usetags sample provider"

This reverts commit 73fef2e451e376b23f6c1d43d8781f0b4a0bd1f5.

* [JaxRS] Fix jaxrs jersey1 sample generator

* [JaxRS] Fix samples for jersey1 and jersey2

* [Server: Java] Fix diamond operator defaultValue for Java < 1.7
2017-08-30 00:31:56 +08:00
jaz-ah
b0db394855 [Swift3] fix for unwrapRequired compilation when we have a "result" as one of the parameters (#6377)
* two fixes: 1) extra ?'s at end of some url's 2) enums not being called out w/ rawValue to get the proper string name

* update samples

* one step closer

* closer implementation

* fix unwrapRequired models when we have a parameter named result
2017-08-30 00:01:47 +08:00
wing328
b1660c2d57 add python presentations, add java tech com 2017-08-29 22:05:50 +08:00
wing328
edfec88943 add mandrean to php, C# tech com 2017-08-29 14:07:48 +08:00
wing328
b77337102a move mbohlool to python committee 2017-08-29 02:13:04 +08:00
wing328
b981421bbb add frol to python committee 2017-08-29 01:58:01 +08:00
wing328
e915b01cf7 update technical committee for cliffano 2017-08-29 01:56:59 +08:00
wing328
51b5207f92 add mbohlool to technical committee (python) 2017-08-29 01:39:07 +08:00
wing328
1f6b909dd0 add technical committee, remove evangelist 2017-08-29 01:31:22 +08:00
wing328
d8fcedadbe rename ts angular batch files 2017-08-28 18:45:17 +08:00
wing328
ccfe7f5cbf minor fix to ts angularjs bin script 2017-08-28 18:36:37 +08:00
Damien Pontifex
14f0375bdd Codegen class rename for Angular and AngularJS to reflect naming guidelines (#6109)
* Rrename for angular and angularjs to reflect naming guidelines

see http://angularjs.blogspot.com.au/2017/01/branding-guidelines-for-angular-and.html
- move makes typescript-angular -> typescript-angularjs
- move makes typescript-angular2 -> typescript-angular
Language string with generate was already this so generation shouldnt change
but class naming follows this convention now

* Fixing merge problems
2017-08-28 18:32:50 +08:00
Yusuke Tsutsumi
8bdaf493dd implemented tornado-based client. (#6367) 2017-08-28 15:10:06 +08:00
Ahmet Taha Sakar
17b71f1707 Swift3 arrayenums (#6354)
* added headers to makeRequest function for swift3 template

* added support for enum arrays
2017-08-28 15:08:28 +08:00
sandro97git
4457361c56 fix(codegen, nodejs-server): correct reponse.end (#6301)
Don't send code with response.end because it's already set in writeHead.

Fixes #6292
2017-08-25 23:54:41 +08:00
Isman Usoh
3ecc374682 [Typescript-Fetch] Support additionalproperties, Enum, Auth and more. (#6130)
* Support additionalproperties and more.
- Upgrade to TypeScript 2
- Use type definition from npm instead of typings, typings is deprecation
- Use Enum instead of String Literal Types
- Use typescript es6 lib for target es5
- Support additionalproperties
- Support JSDoc
- Add snapshot and npmRepository option
- Update typescript-fetch run script for linux
- Create typescript-fetch run script for windows

* Update and fix
- Fix circle run script
- Fix duplicate query parameter

* Rename typescript-fetch folder to lowercase

* Fix for review and update new line end of file

* Fix end of file

* rename script to {lang}-petstore-all.sh and fix test

* Fix override query string
https://stackoverflow.com/a/7517673/1077943
2017-08-25 23:26:32 +08:00
wing328
d4b8658e07 add style guide for R 2017-08-25 22:52:55 +08:00
stmeyer
6c8bd6b83e [QT5CPP] General Improvements (#6315)
* - check C++ keywords
- setter for SSL configuration

* recreate example QT5CPP

* only emit error signal if error happens

* provide more error information

* regenerate example QT5CPP

* * use reserved words in abstract cpp generator
* update CppRest examples

* remove tabs
2017-08-25 18:35:56 +08:00
jaz-ah
1b05960a74 [Swift3] Fix unwrapRequired parameter which wouldn't compile (#6340)
* two fixes: 1) extra ?'s at end of some url's 2) enums not being called out w/ rawValue to get the proper string name

* update samples

* one step closer

* closer implementation

* fix build when using unwrapRequired option
2017-08-25 18:19:26 +08:00