Commit Graph

2983 Commits

Author SHA1 Message Date
wing328
7da2893e0e to fix #2585 2016-04-15 00:42:59 +08:00
kolyjjj
c6068dcd9b [issue-2374][koly] use three brackets to unescape variables 2016-04-14 22:20:00 +08:00
kolyjjj
4b6aec0d6f merge 2016-04-14 21:51:01 +08:00
kolyjjj
4b7233063c [issue-2374][koly] add return class in @apiresponse and use java languageSpecificPrimitives in super class 2016-04-14 21:32:52 +08:00
Kevin Glinski
f02ee42594 merge from upstream 2016-04-14 08:35:05 -04:00
Kevin Glinski
2beeabb33a fixing typeos 2016-04-14 08:22:56 -04:00
Kevin Glinski
a7a39ab08b adding readme text and nav links 2016-04-14 08:18:55 -04:00
wing328
4f84c7d3bc Merge pull request #2583 from cjolif/nilasdefault
make sure user is not forced to pass nil for optional parameters
2016-04-14 19:23:24 +08:00
wing328
d260604d34 Merge pull request #2574 from pixelshaded/feature/HandleFalseyParams
[Typescript-Node] Verify required parameter is not undefined instead of falsey.
2016-04-14 17:52:38 +08:00
wing328
09af45c20f Merge pull request #2513 from jaz-ah/issue/2512
[Android] fix issue 2512: crash w/ NPE when dereferencing networkStatus which c…
2016-04-14 17:11:18 +08:00
wing328
31120590f5 regenerate csharp sample 2016-04-14 16:30:22 +08:00
wing328
f4e69597e5 fix typo 2016-04-14 16:24:06 +08:00
wing328
d19ed8a89b fix php test cases with petstore test yaml 2016-04-14 16:19:38 +08:00
wing328
1b10a513ff Merge pull request #2594 from guohuang/issue2589
issue#2589: added fully qualified names memory stream for C#
2016-04-14 15:54:46 +08:00
Joseph Zuromski
7bbe4404d7 fix regression introduced in commit 00c97c8ff6 2016-04-14 00:44:30 -07:00
wing328
c702a6aaa4 regenerate go sample, rename configuration.go 2016-04-14 15:15:19 +08:00
wing328
c880928519 Merge pull request #2596 from jaz-ah/swift/spacing
[Swift] minor spacing cleanup in Models.mustache
2016-04-14 14:55:02 +08:00
Joseph Zuromski
8331aac869 Merge branch 'master' into issue/2512 2016-04-13 23:37:45 -07:00
Joseph Zuromski
86a7637010 [Swift] minor spacing cleanup in Models.mustache 2016-04-13 23:36:16 -07:00
wing328
994a77573d Merge pull request #2592 from guohuang/issue2582
issue#2582: change go api file name to snake case
2016-04-14 14:35:59 +08:00
wing328
cf4e01e4dd Merge pull request #2591 from neilotoole/issue-2564-export-params-vendor
Issue #2564 : Query structs now export their fields
2016-04-14 14:15:08 +08:00
Guo Huang
35fbb3e53a updated csharp project to use System.IO.Stream instead of Stream to avoid namespace issue 2016-04-13 22:44:00 -07:00
Guo Huang
ad1bb22661 fixed model file name to be snake case 2016-04-13 22:26:03 -07:00
wing328
50eacbe95f Merge pull request #2593 from guohuang/issue2579
isssue#2579: added "UserAgent" in configuration
2016-04-14 12:46:39 +08:00
Guo Huang
a11a4541db changed code to use packageVersion instead of version 2016-04-13 21:12:02 -07:00
Kevin Glinski
67fe023efb fixing typeo 2016-04-13 21:52:59 -04:00
Kevin Glinski
ffff0ab535 adding csharp documentation 2016-04-13 21:50:35 -04:00
Guo Huang
2dca8b003d issue#2589: added fully qualified names memory stream for C# 2016-04-13 16:56:36 -07:00
Guo Huang
b02a88f0eb fixed httpUserAgent not populating value issue 2016-04-13 16:26:10 -07:00
Guo Huang
1f085ccd52 isssue#2579: added "UserAgen" in configuration 2016-04-13 16:08:14 -07:00
Guo Huang
eb7d3dfe15 issue#2582: change go api file name to snake case 2016-04-13 15:40:11 -07:00
Neil O'Toole
2f3897f6d5 Issue #2564 : Query structs now export their fields 2016-04-13 16:05:03 -06:00
Guo Huang
13e56514ee added import tests for Go 2016-04-13 14:03:19 -07:00
Fabien Da Silva
4f8bbea660 [Android] Update build.gradle and pom.xml in Java libraries
Fix #2451
2016-04-13 14:39:20 +02:00
Christophe Jolif
fca0d0f0f7 make sure user is not forced to pass nil for optional parameters 2016-04-13 11:14:48 +02:00
wing328
410723d23b Merge pull request #2577 from guohuang/issue2569
issue #2569: added model tests for Go
2016-04-13 15:43:33 +08:00
wing328
b1077f9684 Merge pull request #2580 from wing328/flask_optional_argument
[Python][Flask] add optional argument to flask controller
2016-04-13 15:41:41 +08:00
Guo Huang
2a2f8b1338 removed local variable declaration in Go 2016-04-12 20:50:58 -07:00
wing328
03b7af092b add optional argument to flask controller 2016-04-13 11:42:02 +08:00
Guo Huang
579e356e5b removed unneeded test fields 2016-04-12 20:38:19 -07:00
Guo Huang
6b92362735 remove unneeded function line 2016-04-12 20:20:32 -07:00
wing328
acdccdb4cb Merge pull request #2567 from guohuang/issue2535
issue #2535, added authentication header for GO
2016-04-13 09:38:26 +08:00
wing328
01ad3c3d3a Merge pull request #2563 from neilotoole/issue-2561-post-process-params
Issue #2561 : set isXYZParam flags before postProcessParameter [updated]
2016-04-13 09:02:58 +08:00
Guo Huang
b4bc0be0cb fixed all model test errors 2016-04-12 17:05:01 -07:00
Guo Huang
68f4113429 issue #2569: added model tests for Go 2016-04-12 16:07:09 -07:00
Guo Huang
930756a76a added missing ")" for api key 2016-04-12 09:21:08 -07:00
Alexander Fisher
da5a15b8e5 Favor explicit check for null or undefined for clarity sake. 2016-04-12 11:28:47 -04:00
Alexander Fisher
0ad7e715c4 Update error message to be clear on exact problem. 2016-04-12 11:18:23 -04:00
Alexander Fisher
60f830ccf2 Use loose equality check on null so that we throw not only on undefined params but also null ones. 2016-04-12 11:13:37 -04:00
Alexander Fisher
f20605d90e Verify parameter is not undefined instead of falsey. 2016-04-12 08:56:28 -04:00
hcwilhelm
be0efa3b25 replayced requiredParamCount with allParams 2016-04-12 14:39:28 +02:00
wing328
cd91f457bf Merge pull request #2571 from wing328/objc-docstring
[ObjC] update docstring in ObjC API header files
2016-04-12 16:02:39 +08:00
wing328
221e6ad57a Merge pull request #2570 from wing328/fix_indention
Fix indention in the generated code
2016-04-12 16:00:18 +08:00
wing328
feee8de4be udpate docstring in objc 2016-04-12 15:33:40 +08:00
wing328
b26cd66651 Merge pull request #2560 from wing328/flask_python2
[Python][Flask] add support for python2
2016-04-12 15:02:43 +08:00
wing328
16a20f6194 update perl indention 2016-04-12 14:51:18 +08:00
Guo Huang
6154619924 updated code to use query struct 2016-04-11 23:28:06 -07:00
Guo Huang
4e6ff1a567 added api prefix for authentication 2016-04-11 22:25:02 -07:00
wing328
b34c9dd7ee fix indention in c# 2016-04-12 12:42:09 +08:00
Guo Huang
7fda8699b1 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen into issue2535
# Conflicts:
#	modules/swagger-codegen/src/main/resources/go/configuration.mustache
#	samples/client/petstore/go/swagger/Configuration.go
2016-04-11 20:17:57 -07:00
wing328
fb8c001075 Merge pull request #2562 from guohuang/issue2548
issue #2548, added docstring to Go model and its properties
2016-04-12 10:49:19 +08:00
Guo Huang
fc80bce82f issue #2535, added authentication header for GO 2016-04-11 15:49:13 -07:00
Neil O'Toole
30a1330c08 Issue #2561 : set isXYZParam flags before postProcessParameters 2016-04-11 12:24:52 -06:00
Guo Huang
9c455880b2 issue #2548, added docstring to Go model and its properties 2016-04-11 11:14:33 -07:00
Guo Huang
ae3c628875 issue#2534, added _sling.Set in the go api 2016-04-11 10:37:50 -07:00
Guo Huang
963df24eee Merge branch 'master' of https://github.com/swagger-api/swagger-codegen into issue1946 2016-04-11 10:19:49 -07:00
wing328
38903aa7f3 add support for python2 2016-04-12 00:43:13 +08:00
wing328
3e13f69b53 Merge pull request #2558 from wing328/master
[Go] update type mapping, fix indention in go model
2016-04-12 00:01:54 +08:00
wing328
d8963d0a85 udpate type mapping for go, fix indention in go model 2016-04-11 23:44:06 +08:00
wing328
c8f4edff68 Merge pull request #2554 from wing328/add_format_test
Add tests for different type and format for model's properties
2016-04-11 23:05:59 +08:00
wing328
0e1f1606cd update js code gen to handle different type, format 2016-04-11 22:20:30 +08:00
wing328
87af119d9a Merge pull request #2556 from hcwilhelm/model-option-scalatra
Model option scalatra
2016-04-11 21:26:10 +08:00
wing328
6c98a46bf1 Merge pull request #2555 from wing328/bug/doc_remove_isnotrequired
[Doc] minor fix to html doc
2016-04-11 21:11:52 +08:00
hcwilhelm
b2ee8d02a4 fix for optional field in scalatra client 2016-04-11 15:07:25 +02:00
hcwilhelm
659b216413 fix for optional field in scalatra client 2016-04-11 15:03:04 +02:00
wing328
1dc895e123 minor fix to html doc 2016-04-11 20:43:06 +08:00
wing328
f71334fe4a Merge pull request #2551 from hcwilhelm/asyncscala-handle-option
Fix handling optional fields in asyncscala client model
2016-04-11 20:40:02 +08:00
wing328
1c14fc7291 fix perl indention 2016-04-11 20:34:06 +08:00
wing328
1093698315 Merge pull request #2547 from jerry1621/csharp_sync_uwp
fix sync call for uwp
2016-04-11 19:48:21 +08:00
wing328
44a4219e3e fix swift mapping with int and number 2016-04-11 19:37:56 +08:00
hcwilhelm
9df6d19ddd Fix handling optional fields in asyncscala client model 2016-04-11 13:05:01 +02:00
wing328
6c7efd502b map bytearray to string in ts 2016-04-11 16:42:20 +08:00
Jerome Dreyer
e2941582fa fixed tab-spacing 2016-04-11 09:49:03 +02:00
wing328
b66540e12c Merge pull request #2537 from arnested/php-initialize-discriminator
[PHP] Set discriminator property in constructor
2016-04-11 14:28:06 +08:00
Jerome Dreyer
a8bbb37866 fix sync call for uwp 2016-04-11 08:24:18 +02:00
wing328
f5dd7ae031 Merge pull request #2518 from pixelshaded/feature/issue2274
Typescript Node: Support Multiple Api Key Auth Methods
2016-04-11 12:04:47 +08:00
Guo Huang
00fcf9946a issue #1946, added AddDefaultHeader method for GO 2016-04-10 20:50:53 -07:00
wing328
e952e4435e fix system.web import 2016-04-11 00:59:48 +08:00
wing328
a6a88decfd add a switch for excluding system.web for ump support 2016-04-11 00:59:48 +08:00
wing328
91a2cc4b5d fix wording "beta support" 2016-04-11 00:59:48 +08:00
wing328
559e11e6d2 add uwp support 2016-04-11 00:59:47 +08:00
wing328
f66046c932 Merge pull request #2541 from wing328/csharp_remove_trailing_whitespace
[C#] remove trailing spaces from C# API client
2016-04-10 23:47:05 +08:00
wing328
f52f6c64a2 Merge pull request #2542 from wing328/restore_petstore_yaml
[Petstore] restore petstore.yaml from http://petstore.swagger.io/v2/swagger.json
2016-04-10 23:46:55 +08:00
wing328
9bd7a708ae fix typo in the spec 2016-04-10 23:14:02 +08:00
wing328
070d87a97c restore petstore.yaml 2016-04-10 23:11:42 +08:00
wing328
1cd3255be6 remove trailing space for csharp api client 2016-04-10 22:04:52 +08:00
wing328
8657720c09 fix spec with no model for objc client 2016-04-10 19:34:09 +08:00
Arne Jørgensen
65d677c385 Set discriminator property in constructor
When using inheritance let the constructor set the discriminator
property to the model name.

This avoids redundant and error prone stuff like:

```
  $animal = new \Swagger\Client\Model\Dog();
  $animal->setClassName('Dog');
```
2016-04-09 21:05:18 +02:00
wing328
5ea66f6762 Merge pull request #2484 from wing328/csharp_fix_constructor
[C#] fix extra comma in the constructor when last property is read-only
2016-04-09 21:14:30 +08:00
wing328
7cad373e2e Merge pull request #2528 from guohuang/issue1949
issue #1949 added Configuration struct for GO in codegen
2016-04-09 21:13:26 +08:00