Commit Graph

9187 Commits

Author SHA1 Message Date
Halil İbrahim Şener
7696ca1658 [Java][Client] Add Deprecated annotation and update samples (#6166) 2017-07-26 01:07:30 +08:00
Mykola Yashchenko
5223c80c6d generate boolean getter method according to a code convention (#6169) 2017-07-25 23:43:56 +08:00
wing328
b683d6a335 add link to presentation about using Gradle 2017-07-25 22:28:17 +08:00
wing328
bc68e9706e update java play petstore sample 2017-07-25 17:48:13 +08:00
Ximo Guanter
70e2f643dd Fix date-time params in Java-Play codegen (#6088) 2017-07-25 17:45:02 +08:00
wing328
45213e0eb6 add tips about github keyword 2017-07-25 15:09:38 +08:00
Georgy Grigoryev
eea797d181 import models fix for csharp (#6155) 2017-07-25 15:04:30 +08:00
Eric O'Connell
2540db8adf More flexible subclassing of ApiClient possible by s/private/protected/g (#6159)
* More flexible subclassing of ApiClient possible by s/private/protected/g

I found myself in a situation where I needed to change the configured `Feature`s, but
because of all the private variables I was not able to do so. Perhaps this is a bit too
broad of a stroke, but I changed all fields and methods to `protected` instead of `private`.
In this way, future extensibility should be improved.

Also, to solve my particular problem, I added a new empty method called
`performAdditionalClientConfiguration` which will allow subclasses to add specific features,
or do anything else possible with a `ClientConfig`.

* Updated samples
2017-07-25 14:56:34 +08:00
Dathan Bennett
630b126938 Update README.md to fix broken TOC link (#6162) 2017-07-25 14:54:30 +08:00
marcotta
21146b5087 Fix Xcode Documentation Issue (#6157)
Allow documentation to specify void when no
return type is available

Remove Xcode warnings:
"Documentation Issue
Empty paragraph passed to '@return' command"
2017-07-25 01:32:36 +08:00
wing328
943b47d04c remove PetStatus from petstore.yaml 2017-07-25 01:21:15 +08:00
Jean-François Côté
79e10c427a Fix for issue #5460 (#5778)
* Fix issue 5460

* Handling only first and last double quote to support example with double quote in the middle

* Fix proposed by @ePaul

* Add comments to explain de fixStringModel function. Add an enum model called PetStatus that test this scenario. Update sample only for JavaPlayFramework generator
2017-07-25 01:20:36 +08:00
wing328
64658f0bea update eiffel petstore 2017-07-25 00:03:15 +08:00
wing328
007fc46b6a [Java][Spring] set base package to "invokerPackage" (#6156)
* set base package to invokerPackage in spring

* minor fix to how invokerPackage is processed

* fix option test failure
2017-07-24 22:00:10 +08:00
wing328
b91ddfc669 comment out ts jquery test 2017-07-24 18:11:18 +08:00
wing328
5497ce5b23 update python petstore samples 2017-07-24 00:32:26 +08:00
Jeff
67288b1303 Add polymorphism support for python (#6066) 2017-07-24 00:25:39 +08:00
wing328
4a8d9c3509 add "Data" as reserved word in swift 2.x, 4.x 2017-07-24 00:06:11 +08:00
julien-h-webcenter
f5591232fc fix add "Data" to reserved Keywords (#6011) (#6021) 2017-07-24 00:03:33 +08:00
wing328
827c8c38ed Merge branch 'gabrielbauman-patch-1' 2017-07-23 23:46:44 +08:00
wing328
302a0b4e93 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2017-07-23 23:39:00 +08:00
wing328
2d19776caf Merge branch 'mobreza-jersey-logging-deprecated' 2017-07-23 23:38:39 +08:00
wing328
43d8fe5047 update java (jersey2) petstore samples 2017-07-23 23:38:15 +08:00
Isman Usoh
7805125713 Fix generate additionalProperties array type #6081 (#6082) 2017-07-23 23:21:57 +08:00
wing328
5cbce712fd update spring petstore samples 2017-07-23 23:07:03 +08:00
wing328
8f95691681 Merge branch 'patch-1' of https://github.com/gabrielbauman/swagger-codegen into gabrielbauman-patch-1 2017-07-23 23:02:30 +08:00
Matija Obreza
a0de7cb3a4 Jersey LoggingFilter is deprecated, replaced with LoggingFeature 2017-07-23 16:54:12 +02:00
Jean-François Côté
bf327519b8 Add support for endpoint examples. Right now it doesn't work because {{{example}}} is always empty (#5775) 2017-07-23 22:45:30 +08:00
Jean-François Côté
8597b3f843 [JavaPlayFramework] Add automatic bean validation method when activated (#6125)
* Add automatic validation of return type when beanValidation is activated

* Small fixes for the automatic validation

* Add validation of entering body object + fix problem when receiving list + do not validate when the return value is a file
2017-07-23 21:49:55 +08:00
wing328
570f0a9bee Squashed commit of the following:
commit e3210cf8cc679c54f5c0d8d4fda2db6af1ee5bcf
Author: wing328 <wing328hk@gmail.com>
Date:   Sun Jul 23 17:41:44 2017 +0800

    comment out failed kotlin test

commit ed6bd1b92464f56885bc3cfa5d30936ce4a3d53d
Author: wing328 <wing328hk@gmail.com>
Date:   Sun Jul 23 17:17:20 2017 +0800

    test kotlin the last

commit a601445d04d0935f6a80a5052f1b4c6c3ee514d2
Author: wing328 <wing328hk@gmail.com>
Date:   Sun Jul 23 16:56:40 2017 +0800

    add test for kotlin client
2017-07-23 18:25:36 +08:00
wing328
e916a769ca update ts script to use petstore.yaml, add
typescript-aurelia-petstore.bat
2017-07-23 16:02:34 +08:00
wing328
188e998683 add petstore samples for typescript aurelia 2017-07-23 15:52:02 +08:00
Konstantin Simon Maria Möllers
21619c5320 [TypeScript][Aurelia] Create Aurelia code generator #5987 (#5991)
* [TypeScript][Aurelia] Create Aurelia code generator #5987

* Implement authentication methods for Aurelia #5987

* Support form data in Aurelia #5987

* Generate an index.ts file for Aurelia #5987

* Add return type to Aurelia model imports #5987

* Add Aurelia client options test #5987
2017-07-23 15:38:21 +08:00
wing328
e298964489 Added redhat with approval from Alec 2017-07-23 11:54:43 +08:00
CappCorp
a2a7ffe2bd [kotlin] fixed support of source folder (#6133) (#6134) 2017-07-23 11:34:02 +08:00
wing328
b54bd0581a update ts fetch petstore samples 2017-07-23 02:24:18 +08:00
roberterdin
e710405778 [TypeScript Fetch] Optional URL query parameters not sent anymore (#6032)
* [TypeScript Fetch] Optional URL query parameters not sent anymore
This prevents empty URL parameters from being sent, e.g. http://some-api/endpoint?param=SOMETHING?v= will now be http://some-api/endpoint?param=SOMETHING.
Solution suggested by @TiFu. Fixes #6003.

* Fixed indentation

* fixed missing semicolon
2017-07-23 02:12:41 +08:00
wing328
a4d67d9115 minor fix to typescript-jquery batch file 2017-07-23 02:00:53 +08:00
wing328
6c922fdae1 Squashed commit of the following:
commit b33232e52b9642e9edf724429dc99afe39d9df07
Merge: e3a1e30 3e76185
Author: wing328 <wing328hk@gmail.com>
Date:   Sun Jul 23 01:38:09 2017 +0800

    Merge branch 'add-petstore-support-typescript-jquery' of https://github.com/StingrayDigital/swagger-codegen into StingrayDigital-add-petstore-support-typescript-jquery

commit 3e76185d906d8b53cc3e7a198546b9e111a0cca4
Author: Jean-François Côté <jcote@stingray.com>
Date:   Thu Jul 20 13:50:01 2017 -0400

    Add working npm generator.

commit 5c27df7c4822fed10ddb81b8a35f60ca40b60914
Author: Jean-François Côté <jcote@stingray.com>
Date:   Fri Jul 7 14:39:39 2017 -0400

    Fix suggested by @wing328 's review

commit 41da37b3576a82ad6056434d36e9d579ef495492
Author: Jean-François Côté <jcote@stingray.com>
Date:   Wed Jul 5 15:47:40 2017 -0400

    Add petstore integration and updated sample
2017-07-23 01:39:36 +08:00
wing328
e3a1e308c4 update smaples, skip ts angular test. 2017-07-22 17:27:10 +08:00
Javier Velilla
fa73e56c17 Enhancements to the Eiffel generator #6057 (#6138)
Added shell scripts, batch files to generate Eiffel Petstore samples.
Added Setup CI (travis, shippable, etc) to cover the Eiffel Petstore samples.
Refactored part of the code into an Abstract Eiffel base class,
which can be later used in Eiffel server stub generators.
Added Eiffel Style guide to the contribution guidelines so that Eiffel contributors know what to follow in terms of code style
Fixed code generator issues.
Updated mustaches templates.
2017-07-22 16:55:45 +08:00
Yuantao
9b6115ec65 #5958 [JAVA-RESTEASY] Add servialVersionId to generated model class when serializableModel=true (#6108) 2017-07-22 16:50:18 +08:00
marcotta
a3c93a64b4 [objc] Convert boolean query params to true/false (#6139) (#6142)
Change booleans in query parameters from 0/1 to true/false to
match Swagger UI behaviour
2017-07-22 16:27:05 +08:00
NicoEigenmannCW
b9b1b7647b Possible Ruby Enum Fix (#6131) 2017-07-21 22:26:39 +08:00
Vladimir Pouzanov
1f133e8ecd [New Generator] Rust API client generator (#6092)
* Added rust client example

* Added a proper apiclient / configuration based example
2017-07-21 21:58:31 +08:00
Alessandro
faa62ee40c Swift3 code enhancements (#6034)
* Improve generated code in APIs so to use the most of Swift SDK
Improve generated code in APIHelper so to remove duplicated code and reuse existing checks

* run ./bin/swift3-petstore.sh

* Run ./bin/swift3-petstore-all.sh to update all the Petstore samples

* Restore old implementation and fix using .isEmpty in place of .count

* Run scripts to update pet store samples

* Reverte changes that use reduce

* Bug fixes on APIHelper template
2017-07-21 21:43:21 +08:00
ehyche
2be2ee080b Fixes for swift4 language (#6116)
* Fix build error in Xcode 9 beta 3, as .compact is no longer defined

* Add test schema for Swift 4 and associated script and config files

* Add test app for swift4Test.json schema

* Make integer, Integer, int, and Int32 types map to Swift Int type instead of Int32 type

* Add CodingKeys to model template, which allows us to serialize/deserialize variable names that are different than property names

* Make updates to Swift 4 test schema

* Fixes for unit test app for swift4Test.json Swift 4 test schema
2017-07-20 15:45:09 +08:00
Jean-François Côté
bca35f6645 Fix for issue #6094 (#6121) 2017-07-20 15:42:56 +08:00
Sergey Shandar
f00e6b349e Syntax highlighting (#6124) 2017-07-20 15:16:06 +08:00
wing328
f1b5ad2e0f Merge pull request #6106 from davidpasztor/fix_issue5878
[Swift3] Fixed compilation issue on macOS
2017-07-20 01:06:58 +08:00