Commit Graph

3112 Commits

Author SHA1 Message Date
Guo Huang
edfc4f88e1 formatted api_client code, grouped public function 2016-04-19 21:02:22 -07:00
wing328
bf15b2a43b Merge pull request #2650 from scottrw93/update-req-versions
Update required packages to latest stable version
2016-04-20 11:33:33 +08:00
wing328
e8f7af8985 Merge pull request #2647 from wing328/ruby_version_upgrade
[Ruby] update gem spec
2016-04-20 11:21:26 +08:00
Guo Huang
0e3bb2c23e added more tests functions, clean up generated code 2016-04-19 15:48:34 -07:00
Guo Huang
9cf6eb4d8b added ApiResponse to all api calls 2016-04-19 15:18:13 -07:00
Scott Williams
79bbab04ec Update required packages to latest stable version 2016-04-19 21:17:43 +01:00
Arne Jørgensen
357cb70795 [PHP] Update PHP dependencies
Updated minimum supported PHP version to 5.4.

Updated development requirements to newest versions supporting PHP 5.4.
2016-04-19 21:30:00 +02:00
Guo Huang
fe1afc35e6 Removed fileParams as the file content will be posted via postBody, fixed file upload issue 2016-04-19 11:46:57 -07:00
wing328
ccc52c2554 update gem spec 2016-04-19 23:41:26 +08:00
xhh
a3f57d6cbd Escape model name in Java okhttp-gson client 2016-04-19 20:29:49 +08:00
xhh
f10d4c8e23 Merge branch 'master' into java-docs
Conflicts:
	modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/JavaClientCodegen.java
	samples/client/petstore/java/default/pom.xml
	samples/client/petstore/java/default/src/main/java/io/swagger/client/model/Animal.java
	samples/client/petstore/java/default/src/main/java/io/swagger/client/model/Cat.java
	samples/client/petstore/java/default/src/main/java/io/swagger/client/model/Dog.java
	samples/client/petstore/java/default/src/main/java/io/swagger/client/model/Name.java
	samples/client/petstore/java/jersey2/src/main/java/io/swagger/client/model/Name.java
	samples/client/petstore/java/okhttp-gson/src/main/java/io/swagger/client/model/Cat.java
	samples/client/petstore/java/okhttp-gson/src/main/java/io/swagger/client/model/Dog.java
	samples/client/petstore/java/okhttp-gson/src/main/java/io/swagger/client/model/Name.java
	samples/client/petstore/java/retrofit/src/main/java/io/swagger/client/StringUtil.java
	samples/client/petstore/java/retrofit/src/main/java/io/swagger/client/model/Model200Response.java
	samples/client/petstore/java/retrofit/src/main/java/io/swagger/client/model/ModelReturn.java
	samples/client/petstore/java/retrofit/src/main/java/io/swagger/client/model/Name.java
	samples/client/petstore/java/retrofit2/src/main/java/io/swagger/client/StringUtil.java
	samples/client/petstore/java/retrofit2/src/main/java/io/swagger/client/model/Model200Response.java
	samples/client/petstore/java/retrofit2/src/main/java/io/swagger/client/model/ModelReturn.java
	samples/client/petstore/java/retrofit2/src/main/java/io/swagger/client/model/Name.java
	samples/client/petstore/java/retrofit2rx/src/main/java/io/swagger/client/StringUtil.java
	samples/client/petstore/java/retrofit2rx/src/main/java/io/swagger/client/model/Model200Response.java
	samples/client/petstore/java/retrofit2rx/src/main/java/io/swagger/client/model/ModelReturn.java
	samples/client/petstore/java/retrofit2rx/src/main/java/io/swagger/client/model/Name.java
2016-04-19 20:19:10 +08:00
Kristof Vrolijkx
a69757ad73 #1809 adding samples with .sh and .bat scripts 2016-04-19 14:13:16 +02:00
Kristof Vrolijkx
d2510b6593 #1809 replacing JSOG with JSON which is provided by the browser. 2016-04-19 13:25:28 +02:00
Kristof Vrolijkx
c3dfa5dbab #1809 resolve casing conflict part2 2016-04-19 13:00:38 +02:00
Kristof Vrolijkx
e94c433874 #1809 resolve casing conflict part1 2016-04-19 13:00:18 +02:00
Kristof Vrolijkx
034c1fbb21 #1809 resolve casing conflict part1 2016-04-19 12:59:23 +02:00
Kristof Vrolijkx
13cd2af105 Revert: #1809 changing the poms 2016-04-19 11:57:55 +02:00
Kristof Vrolijkx
c54bceffe3 #1809 Some small template changes. 2016-04-19 11:56:29 +02:00
Kristof Vrolijkx
f4fc88c6be #1809 Adding basic angular2 typescript codegen. 2016-04-19 11:02:36 +02:00
wing328
3332692d30 Merge pull request #2634 from yonaskolb/swift_enum_type
Append reserved swift enum type with "Enum"
2016-04-19 16:38:06 +08:00
wing328
75001f4ead Merge pull request #2635 from wing328/template_folder_exception
Add exception handling for template directory that does not exist
2016-04-19 16:28:24 +08:00
wing328
894111e3de Merge pull request #2633 from yonaskolb/swift_case_sensitive_reserved_types
Make swift reserved words case sensitive again
2016-04-19 16:27:49 +08:00
Guo Huang
d0123f40b7 fixed go reflection type checking issue 2016-04-18 23:30:30 -07:00
Guo Huang
b57d27d3fc added isFile logic to generate file parameters 2016-04-18 23:15:26 -07:00
Guo Huang
2fcda964ad added ParameterToString method to handle string array issue 2016-04-18 23:06:18 -07:00
Yonas Kolb
2ccb7a38f9 add unescapedNotes to CodegenOperation 2016-04-19 11:42:33 +10:00
Guo Huang
af19a70f72 updated api_client.go to ensure there is value before setting the request 2016-04-18 17:09:47 -07:00
Yonas Kolb
491ceb8987 improve line indentation 2016-04-19 10:04:11 +10:00
Guo Huang
36219a00e9 fix go build errors after upgrading to the new api client 2016-04-18 14:38:11 -07:00
wing328
89e150cfb2 remove unused import 2016-04-18 16:55:34 +08:00
wing328
e7388891e1 add exception handling for template dir that does not exist 2016-04-18 16:51:47 +08:00
Guo Huang
8b896a2353 updated api.mustache to call the api client http request 2016-04-17 23:45:23 -07:00
Yonas Kolb
3de7a4ba85 Append reserved swift enum type with "Enum" 2016-04-18 15:24:37 +10:00
Yonas Kolb
074ecf23e1 make reserved word checking case sensitive 2016-04-18 14:27:26 +10:00
Yonas Kolb
c87e6d6f41 Merge branch 'master' into swift_case_sensitive_reserved_types
# Conflicts:
#	modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/SwiftCodegen.java
2016-04-18 14:22:27 +10:00
Yonas Kolb
f1503e2150 make swift reserved words case sensitive again 2016-04-18 13:55:12 +10:00
Guo Huang
87f9ff189a Merge branch 'master' of https://github.com/swagger-api/swagger-codegen into apiclient_update
# Conflicts:
#	modules/swagger-codegen/src/main/resources/go/api.mustache
2016-04-17 20:41:07 -07:00
Guo Huang
c0292564ee updated api.mustache to use the new api client 2016-04-17 20:37:19 -07:00
wing328
c375f2fed5 Merge pull request #2629 from yonaskolb/param_unescape
Add unescaped Parameter description
2016-04-18 11:18:22 +08:00
wing328
cbccee9c39 update csharp doc with minor enhancements and bug fixes 2016-04-18 00:19:16 +08:00
wing328
8c0cff57ba Merge pull request #2595 from KevinGlinski/csharpdoc
[CSharp] Add auto-generated CSharp documentation in Markdown
2016-04-17 22:47:02 +08:00
wing328
a0b429d690 Merge branch 'issue2374' of https://github.com/kolyjjj/swagger-codegen into kolyjjj-issue2374
Conflicts:
	samples/server/petstore/spring-mvc/src/main/java/io/swagger/api/ApiException.java
	samples/server/petstore/spring-mvc/src/main/java/io/swagger/api/ApiOriginFilter.java
	samples/server/petstore/spring-mvc/src/main/java/io/swagger/api/ApiResponseMessage.java
	samples/server/petstore/spring-mvc/src/main/java/io/swagger/api/NotFoundException.java
	samples/server/petstore/spring-mvc/src/main/java/io/swagger/api/PetApi.java
	samples/server/petstore/spring-mvc/src/main/java/io/swagger/api/StoreApi.java
	samples/server/petstore/spring-mvc/src/main/java/io/swagger/api/UserApi.java
	samples/server/petstore/spring-mvc/src/main/java/io/swagger/configuration/SwaggerConfig.java
	samples/server/petstore/spring-mvc/src/main/java/io/swagger/configuration/SwaggerUiConfiguration.java
	samples/server/petstore/spring-mvc/src/main/java/io/swagger/configuration/WebApplication.java
	samples/server/petstore/spring-mvc/src/main/java/io/swagger/configuration/WebMvcConfiguration.java
	samples/server/petstore/spring-mvc/src/main/java/io/swagger/model/ApiResponse.java
	samples/server/petstore/spring-mvc/src/main/java/io/swagger/model/Category.java
	samples/server/petstore/spring-mvc/src/main/java/io/swagger/model/Order.java
	samples/server/petstore/spring-mvc/src/main/java/io/swagger/model/Pet.java
	samples/server/petstore/spring-mvc/src/main/java/io/swagger/model/Tag.java
	samples/server/petstore/spring-mvc/src/main/java/io/swagger/model/User.java
2016-04-17 17:47:58 +08:00
Yonas Kolb
9e19114c15 unescape parameter description 2016-04-17 19:11:04 +10:00
wing328
8d450a29da Merge pull request #2608 from guohuang/issue2359
issue#2359: added README document generation for Go
2016-04-17 16:14:59 +08:00
wing328
9257c94985 Merge branch 'bug' of https://github.com/guohuang/swagger-codegen into guohuang-bug 2016-04-17 16:09:27 +08:00
wing328
8af6903757 Merge branch 'issue2611' of https://github.com/guohuang/swagger-codegen into guohuang-issue2611
Conflicts:
	modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/GoClientCodegen.java
	samples/client/petstore/go/pet_api_test.go
2016-04-17 16:02:12 +08:00
Guo Huang
3118f932c8 added CallApiAsync method in api_client 2016-04-16 22:58:13 -07:00
Guo Huang
81a39990f4 Removed "packageName" folder for easy installation 2016-04-16 17:00:46 -07:00
Guo Huang
d72b501e40 added required parameters validation for Go 2016-04-16 16:43:04 -07:00
Guo Huang
a8273b9f08 changed code to use pacageVersion, removed unneeded comments 2016-04-16 15:47:34 -07:00
Guo Huang
c458834652 updated pom file, temporary disable unit test errors 2016-04-16 15:37:49 -07:00
wing328
5f6cc62802 fix test case 2016-04-17 03:51:38 +08:00
wing328
a3c6d3af5e restore petstore.json from petstore.yaml 2016-04-17 03:25:12 +08:00
wing328
bb8db88b95 Merge pull request #2620 from wing328/petstore_json_restore
Update shell script to use petstore.yaml instead of petstore.json
2016-04-16 19:17:07 +08:00
wing328
1d5a0e5b33 update sample for JS closure angular 2016-04-16 18:11:40 +08:00
wing328
1fb3edc612 update akka-scala petstore, minor fix 2016-04-16 17:49:34 +08:00
wing328
8b45d88b93 Merge pull request #2322 from gibiansky/better-haskell-servant
Improve Haskell Code Generation
2016-04-16 17:26:52 +08:00
wing328
4b4b62b1a3 Merge pull request #2613 from tomekc/swift-validate-response
[swift] Check server response and fail request in case of non-2xx response
2016-04-16 16:36:25 +08:00
Guo Huang
69150883c1 added pom.mustache to generate pom.xml 2016-04-15 14:57:47 -07:00
wing328
0b42b533d9 add new files 2016-04-16 00:44:36 +08:00
wing328
79decc53a1 fix requireParameterCount in scala 2016-04-16 00:09:15 +08:00
wing328
c317f99466 fix required parameter in scala api client 2016-04-15 23:08:16 +08:00
wing328
87e542c69c replace requiredParam with reuqired 2016-04-15 22:54:46 +08:00
Tomek Cejner
1fa5c73dcc [swift] Validate response; return error in case if non 2xx status. 2016-04-15 16:45:35 +02:00
wing328
51d254973a Merge pull request #2573 from hcwilhelm/replace-requiredParamCount
replaced requiredParamCount with allParams
2016-04-15 22:04:45 +08:00
wing328
c575b3f498 Merge pull request #2587 from fabdslv/issue-2451
[Java + Android] Update dependencies and generate samples
2016-04-15 20:34:06 +08:00
wing328
4d85314fea Merge pull request #2606 from wing328/spring-mvc-request-header
[Java][SpringMVC] To fix header parameter annotation using baseName
2016-04-15 16:40:11 +08:00
Guo Huang
11f90de808 issue#2543: added api_client to set content-type and accept for http request 2016-04-14 16:11:14 -07:00
Guo Huang
5fad90c3f6 issue#2359: added README document generation for Go 2016-04-14 14:10:15 -07:00
Kevin Glinski
96bf984fcf fixing module names 2016-04-14 13:23:33 -04:00
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