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
wing328
d619b5e02e
Merge pull request #2163 from vivin/enum-support-in-query-params
...
Support for enums in query parameters (issue #1347 )
2016-02-27 22:57:30 +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
Bruno Lopes
051ba88745
Fix for #2100 - List<String> being generated as List<Enum> (update samples)
2016-02-26 14:00:58 +00: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
wing328
ce83a90331
Merge pull request #2211 from ePaul/feature/1255-suffix+prefix-for-model-name
...
Feature/1255 suffix+prefix for model name
2016-02-26 21:16:42 +08:00
David Hontecillas
0fe8f7e375
fix build.gradle template for retrofit2
2016-02-26 13:34:57 +01:00
xhh
432fb84a06
Handle reserved operationId/model name in JS client
2016-02-26 19:56:52 +08:00
Maelig Nantel
fb954a9ecd
Update README.md
2016-02-26 11:45:21 +01: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
Maelig Nantel
37e62b89bc
Fixes for JAXRS-CXF Codegen
2016-02-26 10:56:26 +01:00
wing328
04ede6dff5
Merge pull request #2242 from xhh/java-reserved-operation-id
...
Handle reserved operationId/modelName in Java/Android clients
2016-02-26 17:03:10 +08: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
wing328
2573146eca
Merge pull request #2247 from wing328/csharp_add_more_test
...
[C#] add more test cases for csharp model
2016-02-26 10:08:02 +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
David Hontecillas
6788c89816
fix templates for retrofit2rx and build.gradle
2016-02-25 17:00:56 +01: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
David Hontecillas
006092f453
removed end of line spaces
2016-02-25 12:23:27 +01:00
David Hontecillas
4ba806f656
update tests for retrofit beta4
2016-02-25 11:34:48 +01: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