Commit Graph

3526 Commits

Author SHA1 Message Date
wing328
770ea9d12e Merge pull request #1270 from xhh/php-sanitize-model-name
Fix #1145: sanitize model name in PHP client
2015-09-23 09:44:38 +08:00
wing328
d09d8bb495 Merge pull request #1269 from efossier/expose-readonly-to-template
Expose readOnly attribute on model properties to templates
2015-09-23 09:29:49 +08:00
wing328
85f99934c8 Merge pull request #1256 from cbornet/java_retrofit_lib
Set retrofit as a java library
2015-09-23 09:12:07 +08:00
Adrian Moos
66dee928d2 consistent indentation (spaces, not tabs) 2015-09-22 18:08:47 +02:00
Adrian Moos
d4a94fbf52 - DefaultGenerator now communicates failures by throwing exceptions
rather than setting a status flag in a public field
- DefaultGenerator now decorates exceptions to record where a failure
occured (which api, model or operation?)
- CodeGenMojo now propagates this exception to maven to abort the build
2015-09-22 18:01:29 +02:00
geekerzp
844cae75b7 Update debug logging in objc client 2015-09-22 16:32:15 +08:00
wing328
4e4e9e7893 add a CLI option to sort method argument 2015-09-22 15:57:22 +08:00
Laurent Van der Linden
61690d625f change the constructor signature to be backwards compatible
update petstore samples for angular and node
2015-09-22 09:20:52 +02:00
Laurent Van der Linden
1cd8141645 implement form parameter support using Angular $httpParamSerializer 2015-09-22 08:37:49 +02:00
wing328
98ff2d231f Merge pull request #1261 from wing328/typescript-node-fix-param-name
[TypeScript] fix parameter name for typescript-node using baseName
2015-09-22 14:22:07 +08:00
xhh
09add2d871 Fix test failure by allowing backslash in model name 2015-09-22 14:03:27 +08:00
xhh
9cbf2d3707 Fix #1145: sanitize model name in PHP client 2015-09-22 11:33:11 +08:00
geekerzp
0622838947 Fixed issues about logging in objc client 2015-09-22 09:29:48 +08:00
Evan Fossier
a6df340cdc Expose readOnly attribute on model properties to templates, can now use isReadOnly property in model templates 2015-09-21 17:34:23 -07:00
xhh
bcbf9c54c7 Remove unnecessary checking of empty string 2015-09-21 18:14:57 +08:00
xhh
6dcaa890cf Improvements on enum var name in Java client
* Place each enum var in a separate line
* Truncate common prefix when present
2015-09-21 17:29:26 +08:00
wing328
2b06a81a52 remove extra line break in typescript-node sample code 2015-09-20 23:17:04 +08:00
wing328
956624f1a4 remove extra line break for typescript-node 2015-09-20 23:15:02 +08:00
wing328
b1728aed7c update sample for typescript-node 2015-09-20 23:11:46 +08:00
wing328
8733be9ac9 update sample, fix formData basename 2015-09-20 23:06:29 +08:00
wing328
c203854254 fix parameter name for typescript-node using baseName 2015-09-20 22:59:56 +08:00
wing328
3dc3af8d18 remove python3 generator 2015-09-20 22:43:43 +08:00
wing328
cbc2fb237d Merge pull request #1252 from seanbright/model-with-no-props
Fix NPE in JavaClientCodegen when model has no properties of its own
2015-09-20 21:57:05 +08:00
wing328
b7d64d1352 Merge pull request #1254 from GoodTRKR/master
[Obj-C] removed extraneous logs unless logging is specifically enabled in the [SWGConfiguration sharedConfig] instance
2015-09-19 01:04:10 +08:00
cbornet
047b06ac84 remove retrofit codegen from config 2015-09-18 15:03:55 +02:00
cbornet
f29f5d6f13 fix error with formParams in async ops 2015-09-18 14:45:37 +02:00
cbornet
1863aca0fa set retrofit as a java library
Fix #1247
Fix #1248
2015-09-18 14:21:48 +02:00
wing328
cf300c09da Merge pull request #1246 from laurentvdl/patch
Use the baseName when referring to path and query parameters.
2015-09-18 16:46:46 +08:00
wing328
27ab9c2e57 Merge pull request #1238 from DariusMR/master
unicode type forgotten in api_client.mustache for python
2015-09-18 16:44:35 +08:00
Laurent Van der Linden
c83c564a19 Use the baseName when referring to header parameters. 2015-09-18 08:05:13 +02:00
wing328
8978a0a906 Merge pull request #1242 from xhh/options-http-method
[Java okhttp-gson] Support the "OPTIONS"  HTTP method
2015-09-18 10:47:27 +08:00
wing328
6d21422bad Merge pull request #1245 from geekerzp/objc_ssl
[Objc] Enhancements of objc client
2015-09-18 10:45:43 +08:00
Matthew Davis
65cfa735d5 [Obj-C] removed extraneous logs unless logging is specifically enabled in the [SWGConfiguration sharedConfig] instance 2015-09-17 17:39:26 -07:00
Sean Bright
e2ce427fb1 Fix NPE in JavaClientCodegen when model has no properties of its own
A model that inherits from another model and does not add its own properties
causes JavaClientCodegen to crash silently with an NPE.

Fixes #1141
2015-09-17 14:35:07 -04:00
Laurent Van der Linden
781458b0d1 Use the baseName when referring to path and query parameters. 2015-09-17 12:46:20 +02:00
DariusM
65f86dbb0f unicode type forgotten in api_client.mustache for python2, works also with python3 2015-09-17 10:31:40 +02:00
DariusM
cc1c495ea5 unicode type forgotten in api_client.mustache 2015-09-17 10:26:08 +02:00
geekerzp
261ae79528 Remove space from parameterToString in objc client 2015-09-17 15:59:03 +08:00
geekerzp
fb14585adf Add parameterToString method 2015-09-17 15:20:11 +08:00
wing328
27e434d786 Merge pull request #1239 from ePaul/feature/use-baseName-for-jsonproperty
Use the swagger property names in all Java models.
2015-09-17 14:43:21 +08:00
wing328
2a37c48e12 Merge pull request #1243 from process/patch-1
[DOC] fix typo in Python api_client template
2015-09-17 14:42:45 +08:00
Justin Chines
85df7c8ed7 [DOC] fix typo in Python api_client template 2015-09-16 22:09:01 -07:00
wing328
b3ca9cdbe0 Merge pull request #1154 from cbornet/retrofit_oauth
[Retrofit] add authorizations to retrofit client
2015-09-17 11:47:06 +08:00
xhh
477d5c40d9 Rebuild Java okhttp-gson client of Petstore sample 2015-09-17 10:22:53 +08:00
xhh
460c8caa8a Support OPTIONS in Java okhttp-gson client 2015-09-17 10:22:53 +08:00
wing328
53e13aee19 Merge pull request #1234 from geekerzp/python_http_verb
[Python] Enhancements http verbs of python client
2015-09-16 22:32:58 +08:00
wing328
ec05dc4414 Merge pull request #1236 from wing328/springmvc_file_upload
[SpringMVC] Replaced hard-coded fileDetail with {{baseName}}
2015-09-16 18:17:12 +08:00
Paul Ebermann
7eec769654 Use the swagger property names in all Java models.
This changes `@JsonProperty({{name}})` to `@JsonProperty({{baseName}})` in model.mustache for JavaInflector, JavaJaxRS and JavaSpringMVC.
In pull request #535 this was already done for the plain Java files (which get used on client side).

This replaces the sanitized names in the generated code by the original property names from the swagger document.
2015-09-16 11:36:51 +02:00
wing328
f483b8dfa8 Merge pull request #1233 from geekerzp/ruby-apiclient
Fix issue that using temp_folder_path from ApiClient in ruby client
2015-09-15 22:28:54 +08:00
wing328
2ac41ff080 repalced hard-coded fileDetail with {{baseName}} 2015-09-15 22:14:13 +08:00