Commit Graph

3188 Commits

Author SHA1 Message Date
wing328
87c6566bd0 mapped uuid to str in python 2016-04-27 17:37:44 +08:00
Neil O'Toole
8753faf2a5 issue #2717 - go code won't compile due to not respecting packageName var 2016-04-27 09:19:23 +01:00
wing328
4d3f82e701 renmae toJSONSchemaPattern to toRegularExpression 2016-04-27 16:09:53 +08:00
Silvio Heuberger
21b39e24af Update libraries to the newest stable version 2016-04-27 10:01:56 +02:00
wing328
3289933405 Merge pull request #2708 from PagerDuty/ruby-model-boolean-fix
Fix ruby model Boolean Attributes not being set
2016-04-27 13:46:21 +08:00
wing328
d9e4d5ccd1 Merge pull request #2637 from fabdslv/issue-2116
[Swift] Force required attrs to be defined with unwrapRequired
2016-04-27 13:32:41 +08:00
wing328
3ea3f9f0bf Merge pull request #2712 from neilotoole/issue-2711-equals-hashcode
issue #2711 adding equals, hashcode etc to model classes
2016-04-27 13:17:40 +08:00
wing328
1169abac2e Merge pull request #2707 from wing328/qt5_date
[Qt5][C++] fix date mapping in qt5cpp
2016-04-27 10:33:14 +08:00
Neil O'Toole
dab2b13df1 issue #2711 adding equals, hashcode etc to model classes 2016-04-27 01:32:02 +01:00
Brian Hou
1361bb7c0b Fix ruby model boolean attributes 2016-04-26 10:21:16 -07:00
wing328
2b71165584 fix date mapping in qt5cpp 2016-04-27 00:06:29 +08:00
wing328
07d2374320 Merge pull request #2699 from mateuszmackowiak/feature/obj/jsonModel_deserialization_errors
#1907 JsonModel deserialization errors
2016-04-26 21:20:50 +08:00
Silvio Heuberger
4b3dad7fb0 Fix pom.mustache of retrofit2 client lib 2016-04-26 14:24:47 +02:00
Silvio Heuberger
a3701cd81c Update retrofit2 and retrofit2rx to use retrofit 2.0.1 2016-04-26 14:24:47 +02:00
Kristof Vrolijkx
c91f23c2ca adding extra nodeClientOptions 2016-04-25 23:00:48 +02:00
Mateusz Mackowiak
18783e3fc7 #1907 JsonModel deserialization errors 2016-04-25 19:04:00 +02:00
Fabien Da Silva
dc4c8e5864 [Swift] Force required attrs to be defined with unwrapRequired
Fix #2116
Removal of forced unwrapping, replaced by required attributes in constructor
2016-04-25 18:36:32 +02:00
wing328
354449ebfe add validation to method parameters 2016-04-26 00:06:44 +08:00
wing328
89703d86b7 add hasValidation to codegenParameter 2016-04-25 22:45:45 +08:00
wing328
0792ddc9b4 Merge pull request #2695 from wing328/model-min-max-pattern
[Ruby] Add more validation rules to Ruby models
2016-04-25 22:41:19 +08:00
wing328
4854b79a31 add pattern check to ruby model 2016-04-25 22:23:23 +08:00
wing328
0e58265eb5 use instance variable in validation rule 2016-04-25 21:52:37 +08:00
wing328
82ee716f53 Merge pull request #2692 from guohuang/apiclient_update
Rewrite Api_Client.go to use resty api
2016-04-25 21:34:39 +08:00
wing328
e17a620506 add methods to validate the ruby object 2016-04-25 19:18:05 +08:00
wing328
3c36f1df37 use ArgumentError in ruby model 2016-04-25 17:45:32 +08:00
wing328
ab986a7228 add more validation test for ruby model 2016-04-25 17:36:32 +08:00
wing328
e143c6cd2f add validation to ruby model 2016-04-25 17:07:42 +08:00
Kristof Vrolijkx
28f444e808 start adding packaging info to nodejs client. 2016-04-25 08:08:19 +02:00
Guo Huang
7599dcb112 changed Api to API based on golang's convention 2016-04-24 21:10:32 -07:00
Guo Huang
ea445c1e28 added missing file 2016-04-24 15:44:52 -07:00
wing328
d225da082c Merge pull request #2691 from wing328/add_required_optional_vars
Add requiredVars and optionalVars for codegen model
2016-04-24 21:21:34 +08:00
wing328
fb883e5f03 add back groovy code generator 2016-04-24 16:33:15 +08:00
Guo Huang
1de18eb074 added implementation of the new ApiResponse struct 2016-04-23 17:50:17 -07:00
Guo Huang
7df5c8ffbf added model ApiResponse, moved ApiResponse parameter 2016-04-23 16:41:14 -07:00
Guo Huang
e7df5f9551 fixed multiple import mapping issue 2016-04-23 09:52:17 -07:00
wing328
a281afaebf add requiredVars and optionalVars for codegen model 2016-04-23 22:48:24 +08:00
wing328
f1d75f46cf fix #2688 2016-04-23 16:49:52 +08:00
wing328
5602cb6db8 Merge pull request #2676 from Vrolijkx/master
Typescript angular2 client can be published to npm
2016-04-23 14:58:28 +08:00
wing328
f127bbe891 Merge pull request #2685 from wing328/java_client_update
[Java] update maven and gradle version for Java api client
2016-04-23 13:51:49 +08:00
wing328
1ca246c4c8 update java version in pom for java api client 2016-04-23 12:59:36 +08:00
Scott Kirkpatrick
bf35d57178 Update Java version to 1.7 in generated pom
This fixes #2607 and brings the Java version in the generated pom
to match the version in the generated build.gradle.
2016-04-22 11:47:34 -07:00
wing328
8c27f296fb update maven and gradle version for java api client 2016-04-22 23:13:12 +08:00
wing328
a63dbeb4c8 fix bug related to api, model doc for java server generator 2016-04-22 17:05:22 +08:00
wing328
fb04bb7d4d Revert "Revert "[Java] Add auto-generated documentation in Markdown to Java clients"" 2016-04-22 10:13:54 +08:00
wing328
c171356d24 Revert "[Java] Add auto-generated documentation in Markdown to Java clients" 2016-04-22 00:21:04 +08:00
wing328
b847838a0c Merge pull request #2655 from kolyjjj/issue2621
include underscore when generating nodejs controller and service method
2016-04-21 23:35:17 +08:00
wing328
bb54f8a39e Merge pull request #2674 from cjolif/int64
Make sure to convert Int32/Int64 to NSNumber. fixes #2669.
2016-04-21 22:20:15 +08:00
Kristof Vrolijkx
4c1c67cf2b Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2016-04-21 15:52:56 +02:00
Kristof Vrolijkx
9195e92023 using all config properties and adding extra space to package.mustache. 2016-04-21 15:52:43 +02:00
Kristof Vrolijkx
e118fddb47 generation of package.json and compilation files 2016-04-21 15:43:53 +02:00
wing328
a1a990804e Merge pull request #2671 from andriydruk/android_equals_hashcode_fix
[Android] fix equals and hashCode
2016-04-21 20:58:31 +08:00
Christophe Jolif
762d4d6c78 Make sure to convert Int32/Int64 to NSNumber. fixes #2669. 2016-04-21 14:01:16 +02:00
Kristof Vrolijkx
a75b0251c4 Starting addition of full npm package generation 2016-04-21 13:43:51 +02:00
xhh
ace9fc2ccc Merge branch 'master' into java-docs 2016-04-21 18:35:27 +08:00
xhh
f8489c1fcf Fix typo, regenerate Java petstore clients 2016-04-21 18:34:00 +08:00
Andriy Druk
7888205657
fix equals and hashcode for Android 2016-04-21 13:28:04 +03:00
wing328
c4b32f24cf remove trailing space 2016-04-21 17:23:36 +08:00
wing328
6075f078b6 minor fix to constructor 2016-04-21 17:18:44 +08:00
Guo Huang
e555b3ad34 added debug setter and getter in Go configuration 2016-04-20 22:36:32 -07:00
Guo Huang
a2002d9148 added fileName parameter for upload method 2016-04-20 21:30:05 -07:00
Guo Huang
7636a772c6 fixed file upload issue 2016-04-20 13:49:02 -07:00
Guo Huang
10c7c41e82 added config to allow client to see debug log 2016-04-20 12:54:05 -07:00
Guo Huang
287f3ff20b fixed io/ioutil import issue, fixed param casing issue 2016-04-20 12:27:22 -07:00
wing328
8eb3f8a448 fix python property name 2016-04-20 22:12:09 +08:00
kolyjjj
8b9c8d64d9 add method doc 2016-04-20 22:07:59 +08:00
Kristof Vrolijkx
26c8eb1068 some small import fixes 2016-04-20 16:07:02 +02:00
wing328
56ac576a18 Merge pull request #2658 from wing328/php_lumen
[PHP] Add PHP Lumen generator
2016-04-20 21:21:34 +08:00
abcsun
2a67161a3d move the lumen generator to corresponding folder 2016-04-20 20:57:04 +08:00
wing328
37600e1172 add default value to gem spec 2016-04-20 18:49:29 +08:00
kolyjjj
fe704eee1f include underscore when generating nodejs controller and service method 2016-04-20 18:32:14 +08:00
Kristof Vrolijkx
1825a467d8 Adding an index file and avoiding the use of the model.d.ts files because typescript doesn't compile it correctly. 2016-04-20 11:10:29 +02:00
wing328
bc5c83af3b Merge pull request #2511 from oskarcarlstedt/master
Fixing broken enumeration swagger/json types for JaxRS-CXF templates.
2016-04-20 14:19:57 +08:00
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