Commit Graph

6990 Commits

Author SHA1 Message Date
wing328
8c357dd1d6 fix validation for optional parameters/properties for ruby 2016-08-01 16:50:11 +08:00
Arne Jørgensen
0f8e1f8105 [PHP] Client properties validation #3457 (#3480)
* [PHP] Avoid validation of unset, optional parameters

Fixes #3457.

* [PHP] Regenerate petstore samples
2016-08-01 15:24:47 +08:00
abcsun
d7c959fe42 [PHP] add AbstractPhpCodegen to be as the base class of PHP-related generators (#3310)
* add abstractPhpCodegen

* This base class should provide common functions to PHP-related generators so that the same enhancements or bug fixes can be applied to all clients.

Most source be moved from the PhpClientCodegen.

* change Lumen codegen to use the AbstractPhpCodegen

* remove the composerVendorName/composerProjectName. modify the LumenServerOptionsTest for unit test

* add context path

* reserve the apiDocPath and modelDocPath

* add the templateDir for lumen
2016-08-01 15:23:35 +08:00
wing328
3d7ff26c67 [C#] Add C# Petstore test to AppVeyor (#3489)
* update appveyor.yml to test c# petstore client

* update csproj file

* add docker version test

* add docker version

* add docker

* add cpuid.ps1

* comment out cpuid

* use start process

* remove mvn test

* remove comments related to docker

* fix appveyor to run local petstore, shippable caching turned on

* add comments to ci config

* remove cpuid.ps1

* update C# petstore sample
2016-07-31 22:37:06 +08:00
wing328
75cd4bf437 add shippable badge, update travis badge 2016-07-31 10:07:04 +08:00
wing328
aa58497247 add decentfox 2016-07-29 10:38:51 +08:00
wing328
293096f565 Merge pull request #3476 from philicious/qt5-generator-fixes
Qt5: Added missing datatype handlers for QByteArray for swagger-type "byte"
2016-07-29 09:43:50 +08:00
wing328
4e17221494 Merge pull request #3471 from cbornet/fluent_containers
[JAVA] Add fluent methods to add items to list and put items to maps
2016-07-29 09:33:31 +08:00
wing328
33b33cb384 add Skurt to company list 2016-07-29 08:04:46 +08:00
philicious
a67f168fa6 Qt5: add handling for swagger type-format "byte" to Qt5 generator 2016-07-28 19:34:45 +02:00
philicious
b2cb215741 Qt5: added missing data type handler for QByteArray to SWGHelper 2016-07-28 19:29:33 +02:00
wing328
46a222088e update go petstore sample 2016-07-28 00:24:36 +08:00
wing328
c8764fe0d0 Merge pull request #3470 from neilotoole/issue-3469-unused-errors-import
[Go] removed unused import
2016-07-28 00:20:24 +08:00
cbornet
3b4465d999 add fluent methods to add items to list and put items to maps 2016-07-27 18:18:48 +02:00
Neil O'Toole
75403f1900 removed unused import 2016-07-27 09:35:04 -06:00
wing328
34137c703b Merge pull request #3467 from wing328/bug/fix_3396
[Haskell] fix casting issue with ModelImpl in Haskell generator
2016-07-27 18:40:49 +08:00
wing328
3cd37bf5e9 fix casting issue with ModelImpl in Haskell 2016-07-27 18:07:35 +08:00
wing328
c23b473636 [Go] update travis config to run Go Petstore tests (#3465)
* update pom to include go ci

* fix pom

* add gopath

* update GOPATH

* reorder pom client, server test sequence

* remove debug echo in travis
2016-07-27 16:19:23 +08:00
wing328
748eaa849e Merge pull request #3463 from neilotoole/issue-3462-caseified-query-param
Issue 3462 caseified query param
2016-07-27 16:18:58 +08:00
wing328
0675f1686e Merge pull request #3460 from neilotoole/issue-3459_bad_required_checking
Issue #3459 removed check for required params
2016-07-27 16:18:49 +08:00
Neil O'Toole
154d0fc9de #3462 using base name in request instead of caseified paramName 2016-07-26 18:11:36 -06:00
Neil O'Toole
39228c7c94 #3459 removed check for required params 2016-07-26 15:07:57 -06:00
wing328
0beb4aa303 Merge pull request #3458 from wing328/go_fix_apikey
[Go] fix API key issue with Go client
2016-07-27 01:17:03 +08:00
wing328
743219aa08 fix apikey issue with go client 2016-07-26 23:05:08 +08:00
wing328
81f5108bac [Scala][Scalatra] Include scalatra pestore in the CI tests (#3456)
* add CI coverage for scalatra server

* move scalatra test to the end
2016-07-26 16:04:54 +08:00
wing328
2b66128954 Merge pull request #3454 from wing328/bug/fix_3223
Clear import mapping for gnereators that do not use it
2016-07-26 15:47:34 +08:00
Yi
b3403015fd fix scalatra path with basepath (#1425) (#3448) 2016-07-26 14:49:33 +08:00
wing328
9489f7d3eb clear import mapping for gnereators that do not use it 2016-07-26 14:40:29 +08:00
wing328
30c2503f9f [C#][NancyFX] Better "Add" for Dictionary and using {{packageName}} for NancyFX (#3449)
* use square bucket for C# dictionary

* use packageName for nancyfx generator, update info to debug for log

* use packageName for nancyfx generator, update info to debug for log
2016-07-26 14:10:48 +08:00
wing328
8184732da2 Merge pull request #3442 from jimschubert/csharp/3441
[C#] RootNamespace/AssemblyName use packageName
2016-07-25 21:50:04 +08:00
Jim Schubert
52cfd0f86f [C#] RootNamespace/AssemblyName use packageName
Uses packageName instead of packageTitle for RootNamespace and
AssemblyName in the C# generate client project. packageTitle is intended
to add additional information to AssemblyInfo.cs, and changing
packageTitle to non-FQN text breaks adding new files to the project.

packageTitle, per CodegenConstants description:

"Specifies an AssemblyTitle for the .NET Framework global assembly
attributes stored in the AssemblyInfo file."
2016-07-24 11:21:06 -04:00
Christian Loitsch
bf17a91275 dart codegen improvements (#3440)
* fix: query params may be ints as well

don't assume query params are Strings or List<String>s

* fix dart: use correct type for QueryParams

type is Iterable, not List

only check params for != null if they haven't been checked already

add some casts to make strong mode happy

update petstore

* feat dart: enable strong mode

* feat dart: generate both browser and vm library

move petstore client into subdirectory and reference
generated libraries using path in pubspec.yaml

* feat dart: refactor petstore test.

The new layout resembles a real project.

petstore test is now strong mode compatible.

* feat: add DateTimerParser transformer

* feat: improved exception reporting

* feat[dart]: handle patch requests

* fix[dart]: typo

* fix dart: remove findPetsByTag test; enable strong-mode

find pets by tag call is deprecated and returns 500

generated library is now strong mode compatible
2016-07-23 23:45:22 +08:00
wing328
a1e7c517d3 add 2.30 and 2.2.1 milestones 2016-07-22 11:23:45 +08:00
Tao Qian
55bf8b1f96 Stop Shortening Underscore in Enum Value (#3401)
* stop shortening underscore

* use 4 space indentation

* remove fake class and use anonymous class instead

* rename
2016-07-21 21:37:54 +08:00
ozialien
d5528e5d2a jmockit-surefire-fix (#3429) 2016-07-21 21:36:56 +08:00
wing328
13ec3dc6bb [C#] fix remaining reference to NUnit 3.2.1 (#3433)
* fix remaining reference to 3.2.1 of nunit

* fix nunit runner path
2016-07-21 21:23:40 +08:00
wing328
f74bf84017 download C# nunit to 2.x (#3432) 2016-07-21 18:17:43 +08:00
wing328
a916696f28 fix #3427 using String() (#3431) 2016-07-21 17:44:10 +08:00
guohuang
f6c523bcd6 fixed all routing to v2 (#3428) 2016-07-21 11:44:43 +08:00
delenius
c888434580 Improve jsdoc for API return values (#3327)
* Add jsdoc for usePromises, add @link for callbacks

* Update petstore samples

* Improve jsdoc for void return type + usePromises

* Add back curly brackets correctly in model template

* Add link to Promise doc in jsdoc comment

* Fix jsdoc annotation for callApi method

The return type annotation was also broken here.
2016-07-20 20:14:51 +08:00
Tao Qian
8818cf9ff4 raise Exception instead of str (#3322) 2016-07-20 20:06:48 +08:00
abcsun
bee6803bcb add context path (#3425) 2016-07-20 19:06:14 +08:00
Chris Jang
9c7710e695 Factory interface for typescript-fetch (#3398)
* Added Factory interface for typescript-fetch

* added tests

* Removed 'this.'

* Added Factory interface for typescript-fetch

* added tests

* Removed 'this.'
2016-07-20 18:00:52 +08:00
Andy
dfe4944552 Fix #3400 - incorrect MinLength and MaxLength on partial_model_generic.mustache template (#3415)
* fix maxLength and Regexp issue

* more fix

* revert some changes
2016-07-20 16:52:07 +08:00
wing328
97855baf83 Merge pull request #3423 from wing328/bug/fix-3418
[PHP][Silex] fix contextpath for index.php
2016-07-20 16:30:47 +08:00
wing328
889549a352 fix contextpath for php silex 2016-07-20 16:13:06 +08:00
wing328
269c657471 Merge pull request #3422 from wing328/bug/fix-3418
[PHP][Slim] Add missing context path
2016-07-20 16:05:25 +08:00
wing328
9fcb8a310d fix #3418 - slim missing contextpath 2016-07-20 15:49:41 +08:00
wing328
d16b761aaf Merge pull request #3407 from lunat/csharp_api_key_header_issue_3295
Csharp api key header issue 3295
2016-07-20 15:29:53 +08:00
wing328
7fbb499ad1 Merge pull request #3266 from ButterflyNetwork/swift-binary
[Swift] Handle binary data types
2016-07-19 23:19:01 +08:00