Commit Graph

2898 Commits

Author SHA1 Message Date
wing328
82ee6bbb48 Merge pull request #3278 from wing328/escape_unsafe_2
Better handling of multi-line comments for all generators
2016-07-03 00:20:39 +08:00
wing328
e2e0af1e6c Merge branch 'master' of https://github.com/arturdzm/swagger-codegen into arturdzm-master
Conflicts:
	README.md
2016-07-02 17:00:21 +08:00
wing328
2464633368 better handling of multiline comments for all lang 2016-07-02 16:25:55 +08:00
zhenjun115
0117cbb29a update the dependencies for Java Feign API clients to the latest versions; 2016-07-02 12:14:31 +08:00
wing328
3c9b172996 Merge pull request #3274 from wing328/fix_lumne
Remove security test from petstore-with-fake-endpoints-models-for-testing
2016-07-02 11:48:45 +08:00
wing328
393b44dcd2 remove security test from petstore-with-fake-endpoints-models-for-testing 2016-07-02 11:32:25 +08:00
wing328
691957875e Merge pull request #3185 from cbornet/common_jersey
[Jax-rs][jersey] Mutualize jersey 1 and jersey 2 templates
2016-07-02 11:19:40 +08:00
wing328
3ff5dce25b Merge pull request #3255 from arnested/php-security-tests-pom-xml
Add pom.xml for executing PHP Swagger Petstore Security Client tests
2016-07-02 11:03:13 +08:00
wing328
386d41db7f fix duplciated artifact id 2016-07-01 21:56:11 +08:00
Jason Gavris
693c73171e [Swift] Use ISO-8601 date format
- Also fix up Enum parameter generation for formParams by extracting _param partial
2016-07-01 09:55:32 -04:00
wing328
c9d2bb8a96 add test for jaxrs resteasy joda 2016-07-01 21:40:34 +08:00
wing328
8c754d234d fix npe for swift due to array of enum 2016-07-01 16:58:18 +08:00
wing328
be4f4eb022 Merge pull request #3248 from cbornet/retrofit2_interceptor_issue
Use okttp builder instead of instance in retrofit2
2016-06-30 16:45:17 +08:00
wing328
7c5b583751 Merge pull request #3256 from arnested/php-expose-path-to-callapi
[PHP] Add path without expanded path parameters to callApi
2016-06-30 16:37:09 +08:00
wing328
4a3d9358ee Merge pull request #3165 from abcsun/lumen
[PHP Lumen] sort the endpoints in ascending to avoid the route priority issure
2016-06-30 15:51:32 +08:00
Arne Jørgensen
a4ec29000a [PHP] Regenerate petstore samples 2016-06-30 07:12:28 +02:00
wing328
75bd838d23 Merge pull request #3254 from delenius/jsdoc-paramtypes2
Generate type annotations in JS model constructors
2016-06-30 11:33:54 +08:00
wing328
9873953bdf Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2016-06-30 11:26:23 +08:00
wing328
3b022496cd Merge branch 'update-ruby-sample' of https://github.com/chadrosen/swagger-codegen into chadrosen-update-ruby-sample
Conflicts:
	samples/client/petstore/ruby/README.md
	samples/client/petstore/ruby/docs/ArrayTest.md
	samples/client/petstore/ruby/lib/petstore/models/array_test.rb
2016-06-30 11:20:28 +08:00
Arne Jørgensen
52952e4ace Add pom.xml for executing PHP Swagger Petstore Security Client tests
Following #3224 this adds a `pom.xml` for executing `mvn
integration-test` on the PHP Swagger Petstore Security Client tests.

The `pom.xml` is identical to the one in
`samples/client/petstore/php/SwaggerClient-php/pom.xml` with only name
and artifactId changed.
2016-06-29 22:56:27 +02:00
delenius
8a8e9432e1 Generate type annotations in JS model constructors
Fixes #3207
2016-06-29 13:53:33 -07:00
Chad Rosen
4a4151a751 update ruby samples by running the bin/ruby-petstore.sh 2016-06-29 13:19:37 -07:00
wing328
40e497088a Merge pull request #3251 from wing328/fix_slim_path
[PHP][Slim] fix slim path in Windows
2016-06-30 00:55:14 +08:00
wing328
9ee10e2397 Merge pull request #3249 from wing328/csharp_security_fix
[C#] better code injection handling for C# API client
2016-06-29 23:59:24 +08:00
wing328
cb53ea114a Merge pull request #3246 from wing328/security_fix_javascript_closure
[Javascript][Closure] better code injection handling for Javascript (closure)API client
2016-06-29 23:25:04 +08:00
wing328
de6b3cea70 fix slim windows path 2016-06-29 23:24:27 +08:00
cbornet
f54b505704 use okttp builder instead of instance in retrofit2
Fix #3188
2016-06-29 17:07:39 +02:00
wing328
d79274d548 better code injection handling for c# 2016-06-29 22:52:12 +08:00
wing328
8e43f7c2f6 add new JS files 2016-06-29 22:09:27 +08:00
wing328
f89333c8c3 better code injection handling for javascript closure client 2016-06-29 22:07:14 +08:00
wing328
1e596654cd remove node_modeuls under petstore security test for js 2016-06-29 21:47:41 +08:00
wing328
73f88f0bff update js promise petstore client 2016-06-29 21:44:13 +08:00
wing328
73e6626e15 comment out array of enum test case, fix JS enum partial template 2016-06-29 21:40:22 +08:00
wing328
aec2f4e27c better code injection handling for js 2016-06-29 21:18:35 +08:00
wing328
aaf7b99220 comment out test case for map of map of enum as many lang don't support 2016-06-29 17:46:45 +08:00
wing328
fd72409e3b better default value for enum variable declaration 2016-06-29 17:30:33 +08:00
wing328
f88b941d96 fix java okhttp sample 2016-06-29 11:49:40 +08:00
wing328
77c4164b3c better code injection handling for java 2016-06-29 02:00:43 +08:00
wing328
07a852fe78 Merge pull request #3231 from wing328/security_fix_ruby
[Ruby] better code injection handling for Ruby API client
2016-06-28 20:09:55 +08:00
wing328
37e1de6d72 Merge pull request #3230 from wing328/security_fix_python
[Python] better code injection handling for Python
2016-06-28 20:09:40 +08:00
wing328
f1f01041ed update ruby sample 2016-06-28 17:36:58 +08:00
wing328
9e216c0ca2 better code injection handling for ruby 2016-06-28 17:36:00 +08:00
wing328
3a41da42f0 better code injection handling for python 2016-06-28 17:07:50 +08:00
wing328
02864ed31a better code injectino handling for perl client 2016-06-28 16:37:33 +08:00
wing328
8dc22d2bda Merge pull request #3228 from cliffano/master
[Ruby] Add params_encoding configuration to be passed to api_client's request options
2016-06-28 15:31:33 +08:00
wing328
a71c072609 Merge pull request #3224 from wing328/security_fix
[PHP] Better code injection handling for PHP API client
2016-06-28 15:19:41 +08:00
wing328
41636ae149 revert petstore-with-fake-endpoints-models-for-testing.yaml 2016-06-28 14:38:50 +08:00
Cliffano Subagio
af77d94750 [Ruby] Add params_encoding configuration to be passed to api_client's request options. 2016-06-28 15:22:34 +10:00
wing328
174222390a Merge pull request #3190 from thebignet/asyncCompletableFuture
using CompletableFuture instead of Callable for asynchronous controller in Spring Boot
2016-06-28 12:34:23 +08:00
wing328
ec2abe78e3 apply security fix to php lumne, silex, slim 2016-06-28 12:21:41 +08:00
wing328
f38c8373cc create new spec for security testing 2016-06-28 11:48:52 +08:00
wing328
ebd6ffaa4c better handle of single quote to avoid code injectio in php 2016-06-28 00:54:06 +08:00
wing328
1638adb79e avoid code injection in php api client 2016-06-27 21:51:27 +08:00
wing328
5a143ec485 Merge pull request #3220 from pjmolina/nodejs-update-sample
Update petstore sample for changes on PR #3212
2016-06-27 14:59:24 +08:00
Pedro J. Molina
4eb1565fad Update petstore sample for changes on PR #3212 2016-06-27 08:10:01 +02:00
wing328
bee05f0086 Merge pull request #3219 from wing328/android_gradle_update
[Android][Volley] add http client dependency to android volley
2016-06-27 11:59:42 +08:00
wing328
95eb06e2e9 add http client dependency to android volley 2016-06-27 11:25:15 +08:00
wing328
f3bb4ea872 Merge pull request #3180 from cbornet/feign_java8
|Feign] Support jsr310 dates in feign client
2016-06-27 10:47:13 +08:00
wing328
5008de5f83 Merge pull request #3181 from cbornet/retrofit2_java8
[Retrofit] Add support for jsr310 dates to retrofit2 client
2016-06-27 10:01:36 +08:00
wing328
f707675e48 Merge pull request #3217 from wing328/php_enum_class
[PHP] add enum class support, merge test cases
2016-06-27 09:53:31 +08:00
wing328
f04df9a163 fix #3215 and enum array issue in parameter check 2016-06-26 19:17:25 +08:00
wing328
74239c422b add enum class support, merged test cases for php 2016-06-26 17:41:29 +08:00
Jean Detoeuf
4183bfc90c updated Java8 spring sample with CompletableFuture feature #3190 2016-06-26 11:25:54 +02:00
wing328
5095fe1018 Merge pull request #3199 from wing328/better_param_enum
[C#] Add array and map of enum support for C#
2016-06-23 23:49:49 +08:00
wing328
5047ab3b5c Merge pull request #3182 from cbornet/okhttp_java8
[Okhttp-gson] Add support for jsr310 dates to okhttp-gson client
2016-06-23 22:12:29 +08:00
wing328
c15992b420 add array and map of enum support for C# 2016-06-23 12:14:32 +08:00
wing328
e0d030d33a Merge pull request #3139 from stunney/master
Issue #3138
2016-06-22 10:06:37 +08:00
wing328
c2f5d83d06 Merge branch 'nancyfx-codegen' of https://github.com/FinderSystems/swagger-codegen into FinderSystems-nancyfx-codegen
Conflicts:
	modules/swagger-codegen/src/main/java/io/swagger/codegen/CodegenModel.java
2016-06-21 23:47:49 +08:00
wing328
f9cf78e03d Merge pull request #3133 from cbornet/spring_unite
[Spring] put spring-mvc and spring-boot under the same language gen
2016-06-21 22:51:09 +08:00
wing328
7b51522392 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2016-06-21 22:27:56 +08:00
wing328
321dc0d41c add test case for number (decimal) 2016-06-21 22:22:21 +08:00
cbornet
426cc6b6b4 better enums and dependency update 2016-06-21 16:19:37 +02:00
wing328
0f32837383 Merge pull request #3187 from swagger-api/model_propert_same_name
[C#] Fix model with only read-only attributes and model & property using the same name
2016-06-21 21:59:36 +08:00
wing328
3e30291865 fix #3184 2016-06-21 16:16:05 +08:00
ant3
8b60a1e144 Merge remote-tracking branch 'refs/remotes/swagger-api/master' into JSR310-Clients 2016-06-21 00:17:01 +01:00
ant3
274c3150a7 Rebuilt jersey2 client sample. 2016-06-21 00:16:39 +01:00
ant3
b7e4be77c6 Rebuilt jersey1 client sample 2016-06-21 00:16:17 +01:00
ant3
b107b4693d Rebuilt jersey2-java8 sample 2016-06-21 00:15:34 +01:00
ant3
e40ad8ce3c Added sample build for Java8 Jersey2 client 2016-06-20 23:10:01 +01:00
cbornet
d4150d9a02 remove jersey2 sample as its now the jax-rs default 2016-06-20 23:48:42 +02:00
cbornet
5a489f334e mutualize jersey 1 and 2 server templates 2016-06-20 22:59:32 +02:00
cbornet
d29a5537bc add support for jsr310 dates to okhttp-gson client 2016-06-20 16:50:08 +02:00
wing328
d7ac136503 Merge pull request #3179 from areiter/dart-missing-dartson-property
Dart - Java compatibility
2016-06-20 22:46:43 +08:00
cbornet
1062fa467e fix issues 2016-06-20 15:13:17 +02:00
cbornet
ec6a9257e2 put spring-mvc and spring-boot under the same language gen 2016-06-20 15:12:03 +02:00
cbornet
48564079be add support for jsr310 dates to retrofit2 client
See #2874
2016-06-20 14:32:18 +02:00
Andreas Reiter
9ec0e545c8 Updated dart petstore 2016-06-20 13:25:54 +02:00
cbornet
3e9064b81e support jsr310 dates in feign client
See #2874
2016-06-20 13:04:44 +02:00
cbornet
6c5def6936 fix missing java client library files 2016-06-20 10:32:02 +02:00
Marcin Stefaniuk
0d9a490c17 Petstore sample for NancyFX. 2016-06-20 10:13:25 +02:00
wing328
8283b701e8 fix java property with the name "class" 2016-06-20 14:51:17 +08:00
wing328
6fd1912b92 Merge pull request #3151 from mateuszmackowiak/objc/core_data
[Objc] Moved default petstore demo sample to default folder and created a new with core data sample
2016-06-20 14:02:34 +08:00
wing328
d67e4d73cc Merge branch 'zhenjun115-new_python_with_http_info' 2016-06-20 13:12:35 +08:00
wing328
50ef914db0 update test script for python 2016-06-20 12:24:53 +08:00
wing328
88ce868bd5 Merge branch 'new_python_with_http_info' of https://github.com/zhenjun115/swagger-codegen into zhenjun115-new_python_with_http_info
Conflicts:
	modules/swagger-codegen/src/main/resources/python/api.mustache
	samples/client/petstore/python/swagger_client/__init__.py
	samples/client/petstore/python/swagger_client/api_client.py
	samples/client/petstore/python/swagger_client/apis/pet_api.py
	samples/client/petstore/python/swagger_client/apis/store_api.py
	samples/client/petstore/python/swagger_client/apis/user_api.py
	samples/client/petstore/python/swagger_client/models/__init__.py
	samples/client/petstore/python/swagger_client/models/name.py
2016-06-20 11:58:35 +08:00
zhenjun115
8180a46a35 add test case for pet api method with http info returned; 2016-06-19 21:44:12 +08:00
zhenjun115
86c8647ace add async method test case for pet api; 2016-06-19 12:31:10 +08:00
wing328
409d5dabca add license header to typescript API client 2016-06-19 12:03:50 +08:00
wing328
41a615e4eb add gitignore to TS API client 2016-06-19 11:45:51 +08:00
wing328
2b7288d525 add license to cpprest files 2016-06-18 18:09:19 +08:00
wing328
cc5668c825 Merge pull request #3108 from JasonQuinn/master
Adding the ability to get and set the httpClient for jersey2
2016-06-18 16:56:01 +08:00
wing328
4aa9f1b5fa add license header to scala files 2016-06-18 15:21:55 +08:00
wing328
6af40d6667 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2016-06-18 15:10:27 +08:00
wing328
517a189712 Merge pull request #3149 from jimschubert/scala_client_refactor
[scala] Add SBT buid support for scala client
2016-06-18 15:10:04 +08:00
wing328
04748484ba remove println from scala test 2016-06-18 15:08:55 +08:00
wing328
04b15bab15 Merge branch 'scala_client_refactor' of https://github.com/jimschubert/swagger-codegen into jimschubert-scala_client_refactor 2016-06-18 14:54:56 +08:00
wing328
fe06fe30e0 Merge pull request #3156 from ferristseng/master
Fix result not defined error in javascript ApiClient
2016-06-18 14:53:29 +08:00
abcsun
3cb178cd14 sort the endpoints in ascending to avoid the route priority issure 2016-06-18 10:16:46 +08:00
Ferris Tseng
c30c586f94 update petstore sample 2016-06-17 15:46:36 -04:00
wing328
1bdaba5cdc Merge pull request #3127 from abcsun/lumen
[PHP Lumen] 	add parameters validation and the Apache license
2016-06-17 18:58:57 +08:00
wing328
36264f3801 Merge pull request #3152 from salemXpresso/master
Fix Java CXF on parameter names containing '_' or '-'
2016-06-17 12:44:18 +08:00
wing328
8eff9188fb Merge pull request #3153 from wing328/qtcpp_license
[Qt5 C++] Add apache2 license to qt5cpp files
2016-06-17 12:20:09 +08:00
abcsun
0effbae24b add lumen api.mustache to generate controller & license update & resource dir restructure 2016-06-17 11:37:10 +08:00
wing328
c231474c4b Merge pull request #3154 from wing328/python_travis_ci
[Python] add travis.yml to python api client
2016-06-17 09:23:42 +08:00
Jim Schubert
ee630337b9 [scala] Add SBT buid support for scala client 2016-06-16 20:43:58 -04:00
wing328
f9eef2c825 add travis.yml for python api client 2016-06-17 00:41:40 +08:00
wing328
6bdee2adb5 add apache2 license to qt5cpp 2016-06-17 00:04:05 +08:00
Remi Salembier
2d275b41e0 Java CXF petstore sample update 2016-06-16 17:13:02 +02:00
Mateusz Mackowiak
fc43b8700b [Objc] Moved default petstore demo sample to default folder and created a target with core data sample 2016-06-16 11:57:52 +02:00
wing328
dd379461e2 Merge pull request #3124 from mateuszmackowiak/objc/core_data_support_for_array_model
[Objc] - CoreData support for ArrayModels
2016-06-16 17:24:08 +08:00
wing328
b5f22ff5c8 Merge pull request #3109 from philicious/qt5-cpp-helpers-fix
Fixed several issues with Qt5 generator and Qt5 PetStore tests
2016-06-16 16:54:45 +08:00
wing328
2107758100 add swift-petstore-all.sh and partial_license for perl 2016-06-16 16:42:17 +08:00
wing328
6a68965308 Merge pull request #3131 from mateuszmackowiak/android/volley/post_null_body_fix_proper
[Android][Volley] fix support for post null body
2016-06-16 16:04:55 +08:00
wing328
e501287036 Merge pull request #3130 from taxpon/issue-3129-handle-204
Handle 204 response correctly in typescirpt-angualr2
2016-06-16 15:30:10 +08:00
stunney
cb47bec293 Issue #3138
Continuation from original PR to update the pet store server auto gen
sample code based on previous commit.
2016-06-15 10:04:28 -04:00
wing328
89435850a6 Merge pull request #2979 from guohuang/go_server
issue#2970, [Go] add go server codegen template
2016-06-15 15:18:28 +08:00
wing328
e875ac6976 Merge pull request #3128 from wing328/cpprest_generator
[C++] add cpprest generator
2016-06-15 11:32:34 +08:00
wing328
8085e11063 add license header to JS cient, update sample 2016-06-15 01:18:04 +08:00
wing328
9f3b8bab2b add travis.yml for JS api client 2016-06-15 00:03:11 +08:00
Jason Quinn
54babeb5ed Updating jersey2 sample 2016-06-14 15:01:10 +01:00
Mateusz Mackowiak
ac7a7503b4 [Android][Volley] fix support for requests null body 2016-06-14 16:00:40 +02:00
Mateusz Mackowiak
54afae57c8 [Android][Volley] fix support for post null body 2016-06-14 15:49:41 +02:00
Takuro Wada
723f65b940 Fix typo in .swagger-codegen-ignore 2016-06-14 21:50:06 +09:00
Takuro Wada
2843c44401 Handle 204 response correctly in typescirpt-angualr2 2016-06-14 21:31:25 +09:00
wing328
ecd80a3d70 add cpprest and samples 2016-06-14 16:33:50 +08:00
wing328
b782dc0178 Merge pull request #3123 from mateuszmackowiak/android/volley/post_null_body_fix
[Android][Volley] fix support for post null body
2016-06-14 15:46:02 +08:00
philicious
691ef88333 updated SWGHelpers in tests with output from 1b79734 2016-06-14 00:15:39 +02:00
philicious
9825dfc735 fixed Qt5 api-body template bug with form params 2016-06-14 00:13:12 +02:00
philicious
511971cf67 fixed wrong function parameter type in PetApiTest.cpp 2016-06-13 23:54:27 +02:00
philicious
6f85deeecd added missing source/header for SWGApiResponse in Makefile 2016-06-13 23:53:01 +02:00
philicious
8fab73fff6 added missing systemIncludes for QMap, QDateTime, QDate 2016-06-13 23:52:13 +02:00
Arne Jørgensen
614e98a404 [PHP] Regenerate petstore sample 2016-06-13 23:22:31 +02:00
Arne Jørgensen
f5f4adac29 [PHP] Handle empty array response correct 2016-06-13 23:22:04 +02:00
wing328
871d5ddc5d Merge pull request #3112 from cbornet/springboot_j8async
Add java8 and async options to Spring-Boot codegen
2016-06-14 01:02:52 +08:00
wing328
45c32fd57b Merge pull request #3122 from clasnake/add_license_scalatra
Add Apache v2 license to auto-generated scalatra files.
2016-06-14 00:55:40 +08:00
Mateusz Mackowiak
102226666f [Objc] - CoreData support for ArrayModels
- Support for uuid and password types
2016-06-13 18:31:19 +02:00
wing328
eb42f99bb5 Merge pull request #3056 from mateuszmackowiak/objc/core_data_unique-id-key
[Objc] Support for x-unique-id-key vendorExtensions
2016-06-13 23:47:31 +08:00
Mateusz Mackowiak
0816f315d3 [Android][Volley] fix support for post null body 2016-06-13 17:23:34 +02:00
clasnake
ce456fafdc Add Apache v2 license to auto-generated scalatra files. 2016-06-13 22:55:18 +08:00
abcsun
ee024c40fb add apache license to lumen 2016-06-13 17:37:19 +08:00