Commit Graph

9047 Commits

Author SHA1 Message Date
wing328
247cdf273b Merge remote-tracking branch 'origin/master' into 2.3.0 2017-07-09 02:08:22 +08:00
wing328
5f44486238 add swift4 to README.md 2017-07-09 01:36:12 +08:00
ehyche
2ce3365eaf Add a swift4 client generator (#6010)
* Add a swift4 client generator

* Updates per review comments:

- Changed Alamofire dependency from 4.0 to 4.5
- Added "Codable", "Encodable", and "Decodable" to list of reserved words in generator
- Ran "pod update" in default, promisekit, and rxswift samples test projects
2017-07-09 01:33:52 +08:00
wing328
b852e61ee9 Merge remote-tracking branch 'origin/master' into 2.3.0 2017-07-09 00:59:41 +08:00
Frank Fleige
0274ba79ad #6012 - fixed mustache template for lumen server (#6013) 2017-07-09 00:51:47 +08:00
wing328
a603750617 Merge remote-tracking branch 'origin/fix_option_test' into 2.3.0 2017-07-08 22:52:05 +08:00
wing328
c1e1d23b05 fix ts ng2 option test 2017-07-08 22:37:45 +08:00
wing328
b7ffad9a21 update 2.3.0 circleci badge 2017-07-08 22:25:04 +08:00
wing328
4fdaf0d2b4 Merge branch 'wing328-ts_angular2_typings' into 2.3.0 2017-07-08 19:17:41 +08:00
wing328
ed11da25fc Merge branch '2.3.0' into wing328-ts_angular2_typings 2017-07-08 19:03:31 +08:00
marcotta
7ae4146a2b [objc] Initialize default BOOL with @(YES)/@(NO). (#5982) (#5999)
This will prevent submitting integer numbers instead of booleans
when posting objects to the REST API.
2017-07-07 17:16:49 +08:00
wing328
d8e7a11411 remove options to set token 2017-07-07 17:11:34 +08:00
Joel Reymont
4b9d0e6a10 Fix Erlang auth method code generation (#5994)
Broken code is generated when no authentication methods are supplied
in the API schema. Fix this by providing code to fall back to.
2017-07-07 15:14:06 +08:00
Bryon Williams
0e9f531569 allow accessToken to be specified by string or function; restores functionality of PR #4361 (#5974) 2017-07-06 14:28:02 +08:00
topce
01ea4dbb08 fix config issue (#5971) 2017-07-06 00:33:57 +08:00
wing328
e18cf6bd4f update rxjs version 2017-07-05 23:40:21 +08:00
Konstantin Simon Maria Möllers
c29e16f36f Add Sponsoo to list of companies using swagger codegen (#5988) 2017-07-05 21:33:28 +08:00
wing328
18e7c6a712 add php symfony 2017-07-05 16:58:21 +08:00
Konstantin Simon Maria Möllers
8e62ef7b8c [PHP][Symfony] Add a Symfony server generator #3486 (#5973) 2017-07-05 16:43:56 +08:00
Akhil Kedia
f9c9a08a1c Tizen client bugfixes (#5979)
* [Bugfix] Removed a debug print statement that sometimes caused crashes.

Change-Id: I62cf8d70faddfe855c7150927441465466dbaa53
Signed-off-by: akhilkedia94 <akhil.kedia@samsung.com>

* [Workaround/Fallback] Fix conversion of string representation of Json to JsonNode

Changed the conversion to consider any non-parseable string as a single "json string" object.
This is just a fallback to handle non-ideal server responses.

Change-Id: I5339d385e57b6225706fbaaaba1c04003c3810e9
Signed-off-by: akhilkedia94 <akhil.kedia@samsung.com>

* [Bugfix] Correct Handling of Non-String Value Types in Json Maps

Inside the Json Maps in server response, the earlier code was bugged if the "value" in the map was of a non-string type.

Change-Id: I8c34c7e9470fc0743b509917f8098b2ebe2bd4e5
Signed-off-by: Akhil <akhil.kedia@samsung.com>

* [BugFix/WorkAround] No "isPrimitiveType" in BodyParams

The "isPrimitiveType" value tells us whether the data type of a particular parameter is one if the primitive types.
This value is not present when iterating over all the body parameters, but is somehow present when
iterating over all parameters and filtering for only BodyParams.

Change-Id: I5b0a97e615b7300c33dc7f3d4673ad5e87c36f7e
Signed-off-by: Akhil <akhil.kedia@samsung.com>

* [Bugfix] Making Functions Static to Avoid Name Clashes

Multiple functions in different classes might named the same, hence leading to multiple functions of the same name.
Using static to have only internal linkage for these helper functions.

Change-Id: I97fb1dd64b176c4a2b95e6d923723469852bc85a
Signed-off-by: Akhil <akhil.kedia@samsung.com>

* [Enhancement] Minor Improvements to Documentation

Added Modules in Doxygen Doc, Improved MD documentation

Signed-off-by: Akhil Kedia <akhil.kedia@samsung.com>

* Regenrated petstore sample

Update the petstore sample with newest template files
Deleted older sample in samples/client/petstore/tizen/client/
The old samples use oblsolete APIs
(These are APIs for Tizen 2.0, removed in 2.4, current release is 3.0)

Signed-off-by: Akhil Kedia <akhil.kedia@samsung.com>

* [Bugfix] Fixes incorrect headers sent (#5980)

Regenerated the petstore as well.

Signed-off-by: Akhil Kedia <akhil.kedia@samsung.com>
2017-07-05 01:28:39 +08:00
Jan
2774d47a2b fix: es6 style of Array inheritance to fix transpiler error (#5977)
* fix: es6 style of Array inheritance to fix transpiler error

* fix: rebuild of promise-es6 petstore samples with fixed mustache
style: added space between classname and bracket

* style: rebuild javascript-all to reflect style changes in mustache
2017-07-05 01:04:07 +08:00
wing328
f756bd7a72 add style guide for C++ tizen 2017-07-04 19:09:18 +08:00
Julien Fouilhé
c2b575607c fix(swift3): add en_US_POSIX locale to date formatters (#5602) 2017-07-04 11:21:25 +08:00
wing328
45eb5fffc0 add ngVersion option 2017-07-04 01:00:35 +08:00
Jean-François Côté
616f57a592 Typescript-Jquery refactor/improvement proposition (#5751)
* First commit of the Java Play Framework server generator. It is highly based on Spring so there might me a couple of things that don't make sense (like options or parameters) for the Play Framework.

* Fix suggestions in the PR discussion + add .bat and .sh file as requested.

* Updated Readme.md file

* Remove unused mustache file + fix baseName vs paramName in all the mustache files.

* Fix the compilation error when we have a body which is a list or map. Doesn't fix the problem with the annotation itself.

* Fix the problem with the Http.MultipartFormData.FilePart

* First iteration of updating the typescript-jquery template/generator

* first RC of the new version of Typescript-JQuery using better models.

* Minor fix to the generation

* first RC of the new version of Typescript-JQuery using better models.

* Add an options for people using this client in a legacy app and that already have jquery loaded with a script tag somewhere

* Generation of the samples based on the latest changes from the typescript-jquery generator

* Fix to the check if the value is null and undefined

* Small fix when using collection
2017-07-03 23:08:48 +08:00
Ryoga Kitagawa
6b40bc6d30 [Swift3] Add sample for unwrapRequired. (#5853) 2017-07-03 22:46:42 +08:00
wing328
1187950df4 update links to snapshot 2017-07-03 22:39:31 +08:00
Dennis Kieselhorst
3c6696be40 update Spring cloud dependency (#5947 missed the application.yml change) (#5970) 2017-07-03 21:51:31 +08:00
wing328
44d112e9c6 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2017-07-03 21:25:39 +08:00
wing328
bec6eaa9dc minor fix to output path in javascript-es6-petstore.bat 2017-07-03 21:25:16 +08:00
wing328
9a56d4560a Merge remote-tracking branch 'origin/master' into 2.3.0 2017-07-03 18:47:10 +08:00
wing328
25a46374c5 Updated Spring, Boot, Fox and Cloud dependencies (#5969)
* updated Spring, Boot, Fox and Cloud dependencies

* run scripts for java, jaxrs-cxf and spring samples (although changes are not related to my changes)

* update jersey java8 petstore samples

* update java feign samples

* update java petstore samples

* add new files for java petstore clients

* roll back spring cloud dep version

* fix jaxrs-cxf error
2017-07-03 18:44:22 +08:00
wing328
ecf924e78f [Spring] Adds feature useOptional (#5968)
* Adds Valid annotation for request body (#4847)

If useBeanValidation is active, this change will add Valid annotation to ReqeustBody

* Adds generated samples for bean vaildation in spring boot (#4847)

* Adds feature option (#3819)

When you enable the feature useOptional the JavaSpring generator will use type Optional for non required parameters.

* Adds generated sample for #3819

* Adds generated sample for #3819

* Reverts commit for bean validation

* Adds generated sample for #3819

* Reverts commit for bean validation

* Fix alignment

* update spring samples

* update pom.xml to include spring use optional samples

* update artifactId to "spring-boot-beanvalidation"

* rpelace tab with 4-space

* check mvn task result
2017-07-03 17:40:00 +08:00
wing328
76481d1d80 Merge remote-tracking branch 'origin/master' into 2.3.0 2017-07-02 22:43:08 +08:00
wing328
e50a4cca36 update ts angular2 petstore 2017-07-02 22:39:18 +08:00
Paŭlo Ebermann
5de6f7b86e Change all sample-generators for typescript-angular2-* to use the YAML version. (#5859) 2017-07-02 22:32:58 +08:00
mmosemmle
94814176b7 [CPP] Fixing some more ordering of checks (#5951)
* Fix more ordering of checks.

* Update cpp petstores.
2017-07-02 22:30:42 +08:00
wing328
15382f5b77 Merge branch 'ts_angular2_typings' of https://github.com/wing328/swagger-codegen into wing328-ts_angular2_typings 2017-07-02 22:01:10 +08:00
wing328
f3d83eb925 update ruby gem dependency version (#5964) 2017-07-02 21:46:04 +08:00
wing328
304a7ae19a fix regex escape forward slash (#5963) 2017-07-02 20:51:45 +08:00
wing328
f0c40d4c7c update php security petstore sample 2017-07-02 15:10:17 +08:00
wing328
afd535f415 rollback to 2.6.4 for jackson threetenbp in springmvc 2017-07-01 23:46:31 +08:00
wing328
011c6fd01c postpone release date to Jul/Aug 2017 2017-07-01 22:43:34 +08:00
wing328
e7d6bf5d04 add links to snapshot versions 2017-07-01 22:40:53 +08:00
wing328
8d31e57e2a fix spring dep version 2017-07-01 22:22:02 +08:00
wing328
a177e09fbd update mvn clean deploy for 2.3.0 2017-07-01 15:49:00 +08:00
wing328
9269dac6cf Merge remote-tracking branch 'origin/master' into 2.3.0 2017-07-01 15:47:27 +08:00
wing328
7fa53773fc mvn deploy for master only (#5946) 2017-07-01 15:16:26 +08:00
Jordan Zimmerman
40369bb819 Add java8 option 2.3.0 (#5955)
* Closes #5863

The "dateLibrary" option for java, sadly, sets a mustache value "java8". This change updates this so that "java" in the mustache
libraries means what it should mean - use all java8 classes. In this case, there's no need for the third party Base64 library
as java8's JDK has this built in. In my view, the "dateLibrary" should be deprecated but that should be a separate PR.

* Closes #5954

built and ran tests/samples
2017-07-01 15:04:18 +08:00
stkrwork
fbd888d298 [CONFIG] [APACHE] Fix for Java7 issue (#5960)
* - Added Restbed Generator

* - Added Json processing functions to model
- Removed unnused code from restbed codegen class
- Added response header processing to api template

* Changed it to respect alphabetical order

* Made the string joining java 7 compatible

* Added samples

* fix java7 issue with apache
2017-06-30 23:58:31 +08:00