xhh
cc08be6eda
Fix concurrent_unit_version in android-volley build.gradle
...
Closes #2228
2016-03-01 10:50:41 +08:00
xhh
75c2cc9029
Android client: better local variable naming
...
and fix the importing of Long and Byte
2016-02-29 18:27:23 +08:00
xhh
9b229de79f
Java clients: better local variable naming
2016-02-29 13:23:56 +08:00
wing328
9f3c34dbfa
Merge pull request #2267 from wing328/objc_model_prefix
...
[ObjC] add prefix and suffix support to ObjC models
2016-02-28 18:49:50 +08:00
wing328
f3a1f829d0
Merge pull request #2266 from wing328/php_better_local_var
...
[Ruby][Python][PHP] better local variable naming for ruby, python and php
2016-02-28 18:23:11 +08:00
wing328
742e3f5070
remove 'method' from python api
2016-02-28 16:51:50 +08:00
wing328
17a93dd5ce
add prefix and suffix to objc model
2016-02-28 16:15:44 +08:00
wing328
dfa977627a
better reserved word for objc
2016-02-28 15:52:51 +08:00
wing328
f68e93c662
better local variable naming for ruby, python and php
2016-02-28 11:48:14 +08:00
wing328
335a881091
Merge pull request #2264 from wing328/csharp_enhancement_variable
...
[C#] better local variable naming for C# API client
2016-02-28 11:44:40 +08:00
wing328
8a68a64609
Merge pull request #2261 from wing328/php_model_name_improve
...
[PHP][Python][Perl] add prefix/suffix support to model name
2016-02-28 11:28:26 +08:00
wing328
7adc7516cf
Merge pull request #2262 from Glagnar/issue-2084
...
Issue 2084
2016-02-28 10:55:49 +08:00
wing328
b077ff18a2
better local variable naming for C#
2016-02-28 02:15:29 +08:00
wing328
72843adae2
Merge pull request #2244 from hideya/feature/2120
...
Fix #2120 , #2157 - Update Swift API method generation for ease of use
2016-02-28 01:09:28 +08:00
Thomas Gilbert
a817772e25
Fix comment typo
2016-02-27 15:46:38 +01:00
Thomas Gilbert
805433a22e
Better handling of variable and parameter names
2016-02-27 15:31:40 +01:00
wing328
5db16325d4
update perl model to support prefix and suffix
2016-02-27 21:47:07 +08:00
hideya kawahara
9ee154c13a
Make {{projectName}}API namespace for API classes optional
2016-02-27 19:38:12 +09:00
wing328
28769ac671
add prefix and suffic support to php and python models
2016-02-27 18:30:56 +08:00
Vivin Paliath
c3c73b8dae
issue #1347
...
This is a fix to support enums in query parameters. Enum-related information was not being stored on `CodegenParameter` previously; it is now. Test cases have been added to make sure that the enum information is being properly processed from the model.
2016-02-26 08:37:09 -07:00
wing328
029912b25d
Merge pull request #2249 from Mindera/master
...
Fix for #2100 - List<String> being generated as List<Enum>
2016-02-26 22:34:29 +08:00
wing328
c74ea674e0
Merge pull request #2257 from xhh/js-reserved
...
[JavaScript] Handle reserved operationId/model name in JS client
2016-02-26 21:27:56 +08:00
xhh
432fb84a06
Handle reserved operationId/model name in JS client
2016-02-26 19:56:52 +08:00
Paul Ebermann
36f7ffd6eb
[feature #1255 ] make JavaClientCodegen.toModelName independent from super implementation.
...
As pointed out in the review, using a super.toModelName call makes future changes harder
to review, therefore we are implementing the addition of suffix and prefix here again.
In addition, I fixed the FIXME about assigning the parameter.
2016-02-26 11:31:37 +01:00
Paul Ebermann
70bcf22c82
[feature #1255 ] fix import problem pointed out during review.
...
Instead of declaring `Map` and `List` as primitive (which caused them
to be not imported anymore), now we exclude them from the model name
transformation in `JavaClientCodegen.getSwaggerType`.
2016-02-26 11:20:20 +01:00
Paul Ebermann
0ee77636a3
[feature #1255 ] Java: Use super.toModelName to allow prefix/Suffix addition.
...
This allows using the model name prefix and suffix parameters also in Java generators.
We add List and Map to the "language specific primitives" so they don't get mangled
by the suffixes/prefixes in `getSwaggerType`
2016-02-26 11:20:20 +01:00
Jim Schubert
087b9118c1
[feature #1255 ] support model name prefix + suffix also for C#.
...
AbstractCSharpCodegen does override toModelName, which made the change
to DefaultCodegen have no effect.
2016-02-26 11:20:19 +01:00
Jim Schubert
a6f3914a92
[feature #1255 ] prefix and suffix for model names.
...
This implements the command line arguments `--model-name-prefix` and `--model-name-suffix`
for all languages which do not override `DefaultCodegen.toModelName()`.
This fixes most of swagger-api/swagger-codegen#1255 .
Connection to the maven plugin works with additional-properties, a more explicit
parameter waits for swagger-api/swagger-codegen#2168 .
2016-02-26 11:20:19 +01:00
Paul Ebermann
98c5e70f7c
[feature #1255 ] Start of an implementation of model name prefix + suffix.
...
This is just the implementation in DefaultCodegen and some configurator stuff,
the connection to command line arguments is still missing.
2016-02-26 11:20:19 +01:00
xhh
35079fedef
Merge branch 'master' into java-reserved-operation-id
...
Conflicts:
modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/AbstractCSharpCodegen.java
modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/ObjcClientCodegen.java
modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/PythonClientCodegen.java
2016-02-26 11:34:47 +08:00
xhh
dd3a06560d
Case-insensitive checking on reserved words
2016-02-26 11:21:54 +08:00
hideya kawahara
ac3ab477d3
Update Swift API method generation for ease of use
2016-02-26 09:21:30 +09:00
Bruno Lopes
4e411a0e64
Fix for #2100 - List<String> being generated as List<Enum>
2016-02-25 19:43:10 +00:00
wing328
da0dc0f80a
add test cases for csharp model
2016-02-25 23:37:13 +08:00
wing328
41c0034794
Merge pull request #2243 from wing328/python_better_reserved_word
...
[Pytthon] better reserved word handling for objc
2016-02-25 22:46:08 +08:00
wing328
2d4ccbfd79
add test case to python, better resered word handling for objc
2016-02-25 20:09:58 +08:00
wing328
005584cf2a
Merge pull request #2240 from wing328/csharp_better_reserved_word
...
[C#] add better reserved keyword handling for c#
2016-02-25 17:04:44 +08:00
xhh
6b6f0df985
Handle reserved operationId/modelName in Java/Android clients
2016-02-25 16:28:11 +08:00
wing328
700a157b40
Merge pull request #2236 from hideya/fix/2156
...
Fix 2156 - Use fixed date/time in operation.examples to avoid unnecessary diffs
2016-02-25 16:02:14 +08:00
wing328
329223f364
add better reserved keyword handling for c#
2016-02-25 15:35:05 +08:00
wing328
a351724365
Merge pull request #2239 from wing328/php_reserved_words
...
[PHP] better reserved words handling for method and model names
2016-02-25 15:06:14 +08:00
wing328
b20c90a346
Merge pull request #2238 from xhh/ruby-empty-reserved-operation-id
...
[Ruby] Handle empty/reserved operation id
2016-02-25 14:51:58 +08:00
wing328
7b42624a86
log message for writeOptional, better handling of model name for php
2016-02-25 14:37:21 +08:00
xhh
748c032d41
Ruby client: handle reserved words for model names
2016-02-25 14:36:47 +08:00
wing328
6962947611
better handling of model (reserved keyword)
2016-02-25 14:16:40 +08:00
wing328
4e034d3dc5
better reserved word handling for php
2016-02-25 13:16:54 +08:00
xhh
52c9d67025
Update petstore spec and fix tests
2016-02-25 12:20:17 +08:00
wing328
b5ba52111d
Merge pull request #2229 from xhh/js-optional-params
...
[JavaScript] Support optional parameters with object syntax
2016-02-25 11:53:56 +08:00
xhh
84c6b869f8
Ruby client: handle empty/reserved operation id
...
by using a normalized one instead of throwing errors
2016-02-25 11:48:30 +08:00
wing328
484ed848ac
Merge pull request #2230 from wing328/perl_reserved_word
...
[Perl] better handling of reserved keyword in Perl
2016-02-25 10:26:53 +08:00