xhh
cac8df949d
Fix tests
2016-02-17 19:46:40 +08:00
xhh
b2ed17e63e
Remove unused jackson imports from Java models
...
by fixing the logic of enum Boolean checking.
Other changes:
* Remove the `true &&` prefix from the `equals` method in models.
* Apply some changes of Java-default to Java-okhttp-gson, i.e. adding
`this` and parent model handling.
* Some improvements on spaces and blank lines.
2016-02-17 18:03:27 +08:00
wing328
c4d799a4a7
Merge pull request #2155 from wing328/multi_auth_setting
...
Add support for multi-authentication setting
2016-02-17 15:24:05 +08:00
wing328
a47cdddbeb
Merge pull request #2056 from xhh/javascript-auth
...
[JavaScript] Add authentications support to JavaScript client
2016-02-16 22:08:50 +08:00
wing328
a87ce3181b
Merge pull request #2125 from hideya/fix/objc-method-naming
...
[ObjC] Fix #2121 , generated method names don't follow coding convention
2016-02-16 17:55:50 +08:00
wing328
a4825d8142
add multi auth setting (based on #1961 )
2016-02-16 17:17:42 +08:00
xhh
7beb7373c2
Merge branch 'master' into javascript-auth
...
Conflicts:
modules/swagger-codegen/src/main/resources/Javascript/ApiClient.mustache
modules/swagger-codegen/src/main/resources/Javascript/api.mustache
2016-02-16 17:08:58 +08:00
hideya kawahara
753499e204
generated ObjC method names to follow Apple's coding convention
2016-02-16 10:55:36 +09:00
delenius
59931ef0f7
Correct exporting of enum classes
...
Fixes #2102 .
2016-02-15 07:46:14 -08:00
wing328
516a9413a2
update pom.mustache and sample
2016-02-15 18:24:57 +08:00
wing328
816ae0bb3f
update pom for okhttp-gson java to test gradle
2016-02-15 18:17:35 +08:00
xhh
908ab83d9b
Java okhttp-gson: fix dependencies
2016-02-15 16:48:58 +08:00
wing328
a159998293
Merge pull request #2115 from delenius/enums
...
Use objects for enums, not constructor functions
2016-02-15 10:29:34 +08:00
wing328
5b0d8b1f13
Merge pull request #2114 from delenius/static-factories
...
Use static model factory methods
2016-02-15 10:13:09 +08:00
wing328
326ff340dc
Merge pull request #2128 from who/master
...
Adding PATCH header override the default Java client
2016-02-15 10:03:57 +08:00
wing328
23a90b7dcc
remove objc, add pom.xml to test C# petstore client
2016-02-13 17:43:38 +08:00
wing328
2fcbc38b67
fix objc binary mapping, add objc,swift to CI tests
2016-02-13 16:29:35 +08:00
Andrew B
a303a09749
Adding PATCH header override the default Java client
2016-02-12 18:52:49 -08:00
delenius
fa2333717a
Use static model factory methods
...
The `constructFromObject` factory methods should be class methods
(or "static" methods), not instance methods.
With this commit, ApiClient no longer calls the model constructors
directly. Instead, it calls the new static factory method to get the
new instance. If there is no data on the top level, null is returned.
It is still possible for users to call the model constructors
directly, of course.
2016-02-12 07:54:04 -08:00
delenius
86154f87c3
Use objects for enums, not constructor functions
...
Fixes #2101 .
2016-02-12 07:53:51 -08:00
wing328
81593bc4f6
add delay script, update CI test to run ruby test first
2016-02-12 18:46:19 +08:00
wing328
6dfc86f1d2
Merge pull request #2087 from delenius/optional-params
...
Fix handling of missing optional params
2016-02-11 19:16:39 +08:00
wing328
7cb2898f47
update perl pom with new test folder
2016-02-11 09:30:41 +08:00
delenius
c7766457bd
Don't set missing optional params in models
...
Fixes #2103 .
In the constructFromObject methods, we were always setting all the
parameters, including optional ones that were missing in the `data`
object. Because of the `convertToType` calls, this had the effect
of producing the *strings* `"undefined"` or `"null"` as property
values on the constructed object! This obviously leads to difficult
bugs.
This commit makes sure that we first check that the data field
exists in the data object. Note that both `null` and `undefined`
values will be skipped.
2016-02-10 17:18:31 -08:00
wing328
3d9a331666
automaticallay generate test cases for Perl
2016-02-11 08:24:51 +08:00
wing328
f53abf7d8e
Merge pull request #2083 from wing328/csharp_minor_fix
...
[C#] minor fix to documentation comment in Configuration class
2016-02-10 22:33:43 +08:00
wing328
e7b18a04d9
Merge pull request #2062 from jimschubert/csharp_common
...
[csharp][aspnet5] AbstractCSharpCodegen base
2016-02-10 21:33:30 +08:00
Tatsuki Sugiura
0ea7ae1c16
ruby: Add test for boolean convertion.
2016-02-10 19:18:03 +09:00
Joseph Zuromski
694d735edc
[Swift] fix issue 1994: make sure we don't crash if rawValue returns nil when trying to create an enumeration - instead return nil which allows the instance variable to be nil in this case (it will still try to unwrap the optional though if you declare the enumeration as a required property)
...
note: there aren't really any tests I can add to validate this since the service is always returning valid enumerations. but I did update the sample code.
2016-02-09 12:59:14 -08:00
Jim Schubert
37d07e1012
[csharp][aspnet5] AbstractCSharpCodegen base
...
This moves a bit of logic into a base type to prevent lots of
duplicates.
I've only converted csharp and aspnet5 generators, not csharp 2.0.
This base class should provide enough flexibility to support other C#
based client and server generators.
2016-02-09 12:37:59 -05:00
wing328
a36966d961
Merge pull request #1991 from jaz-ah/issue-1989
...
[Swift] fix issue 1989: generate AnyObject type from json object type instead…
2016-02-10 00:42:39 +08:00
Joseph Zuromski
cf7fc1a61b
make SwaggerClient a shared scheme
2016-02-09 08:30:27 -08:00
wing328
fed231c46d
fix documentation comment in Configuration class (C#), make
...
compile-mono permission executable
2016-02-09 22:13:47 +08:00
delenius
aab96ec772
Remove unused callback param when using promises
2016-02-08 23:39:05 -08:00
delenius
7301618671
Add petstore tests for usePromises version
2016-02-08 20:02:38 -08:00
Joseph Zuromski
d84953d504
add in more tests
2016-02-08 15:22:32 -08:00
Joseph Zuromski
2465f398da
add a couple more user tests
2016-02-08 14:43:08 -08:00
Joseph Zuromski
fff0951771
add in some real tests
2016-02-08 14:23:22 -08:00
Joseph Zuromski
288acdb2d4
one more gitignore to keep git clean after build
2016-02-08 13:04:18 -08:00
Joseph Zuromski
7c4983df16
fixup gitignore/schemes
2016-02-08 12:59:35 -08:00
Joseph Zuromski
4a0c7966a1
add in pods
2016-02-08 12:56:49 -08:00
Joseph Zuromski
bc0658e81c
add in initial swift client tests
2016-02-08 12:51:14 -08:00
delenius
153faebc6d
Modify JS PetStore tests for prototypes change
...
This is just the result of running ./bin/javascript-petstore.sh
after the fix for #2044 .
2016-02-08 12:39:30 -08:00
Matan Goldman
341f862569
change the order of the elif inside to_dict for better performance (dictionary/additionalProperties is less probable)
2016-02-07 21:46:33 +02:00
Matan Goldman
2ddbfa8218
Now it should be fully compatible with python 2.7 and 3.4
2016-02-07 21:46:33 +02:00
wing328
59fde5f072
Merge pull request #2060 from wing328/scottrw93_fix_2036
...
[Python] Fix for Python client upload list of files Issue #2036
2016-02-07 23:47:36 +08:00
Scott Williams
57f38e4433
Update pet-store python client files
2016-02-07 23:33:49 +08:00
Matan Goldman
32d2a4d4cb
fix python 3.4 compatabilty
2016-02-07 16:23:12 +02:00
Joseph Zuromski
a4a1372fc1
update swift samples
2016-02-07 05:59:23 -08:00
Matan Goldman
ec4c5502f1
fix identation
2016-02-07 14:21:31 +02:00