Commit Graph

3864 Commits

Author SHA1 Message Date
Kvezon
ef526422e9 Support byte[] downloading in Java jersey2 client 2016-08-01 16:33:58 +03:00
Arne Jørgensen
cfe8dfc112 [PHP] Fix invalid PHP syntax
Fixes 3480.
2016-08-01 11:46:57 +02:00
wing328
1bdd15c55c Merge branch 'feature/confluencewikidocs' of https://github.com/jhitchcock/swagger-codegen into jhitchcock-feature/confluencewikidocs 2016-08-01 17:25:20 +08:00
wing328
85c8eb3d76 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2016-08-01 17:25:13 +08:00
wing328
4895a35200 Merge pull request #3492 from wing328/ruby_optional_validation
[Ruby] fix validation for optional parameters/properties for ruby
2016-08-01 17:12:39 +08:00
wing328
8c357dd1d6 fix validation for optional parameters/properties for ruby 2016-08-01 16:50:11 +08:00
wing328
434b4fd359 Merge pull request #3447 from jhitchcock/feature/static-docs-2
[WIP] - Html Docs 2 - API and Client Library Documentation - Feedback / Assistance wanted
2016-08-01 16:13:16 +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
7c1daab896 Merge branch 'feature/objc-tasks' of https://github.com/wberger/swagger-codegen 2016-07-30 16:17:08 +08:00
jhitchcock
c377153336 Confluence Wiki Documentation 2016-07-29 12:09:03 +02: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
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
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
3cd37bf5e9 fix casting issue with ModelImpl in Haskell 2016-07-27 18:07:35 +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
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
jhitchcock
aaba4b9e82 Html Docs 2 - API and Client Library Documentation 2016-07-25 15:36:05 +02: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
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
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
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
889549a352 fix contextpath for php silex 2016-07-20 16:13:06 +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
Jason Gavris
4f0b7dfaed [Swift] Handle binary data types 2016-07-19 11:05:40 -04:00
Jason Gavris
9e6896c8f0 [Swift] Fix pod authors in podspec 2016-07-19 10:37:20 -04:00
lunat
92e8efde1a Csharp api key header issue 3295 2016-07-19 14:37:03 +02:00
lunat
41bab483e0 Issue #3295
[csharp] header problem due to static method for adding header
2016-07-19 12:45:52 +02:00
wing328
ca4a90d64d Merge pull request #3404 from wing328/objc_fix_empty_desc
To set a default description if none is provided
2016-07-19 17:09:01 +08:00
wing328
37404909bf to set a default description if none is provided 2016-07-19 16:55:39 +08:00
wing328
118fd4d84d Merge pull request #3393 from cbornet/java_inheritance
Set supportInheritance to true for java based gens
2016-07-19 16:15:53 +08:00
wing328
d780e3a5f5 fix #3400 (ruby minLenght, maxLength) 2016-07-19 15:16:07 +08:00