12323 Commits

Author SHA1 Message Date
wing328
6d010f9af7 fix typo 2016-01-21 11:13:06 +01:00
wing328
fb1cc254e4 add api test and model test files 2016-01-21 11:13:05 +01:00
wing328
ccd0db4434 fix empty object serialization issue 2016-01-21 11:13:05 +01:00
wing328
58d920eaf0 update tostring to use sanitizeforserialization 2016-01-21 11:13:04 +01:00
wing328
7a5d9412c5 update csharp configuration to avoid circular dependency, deprecate
ApiClient.Default
2016-01-21 11:13:03 +01:00
xhh
aad0547b40 Ruby: support binary (byte array) for body parameter and response 2016-01-21 18:01:03 +08:00
xhh
253a955cff Merge branch 'master' into java-binary-support
Conflicts:
	samples/client/petstore/java/default/src/test/java/io/swagger/petstore/test/PetApiTest.java
	samples/client/petstore/java/jersey2/src/test/java/io/swagger/petstore/test/PetApiTest.java
	samples/client/petstore/java/okhttp-gson/src/test/java/io/swagger/petstore/test/PetApiTest.java
2016-01-21 17:28:14 +08:00
Shyri Villar
877661a1f4 Add OAuth stub [androiod-volley] 2016-01-20 20:59:55 +01:00
Shyri Villar
407837ebe2 Added configurable timeout 2016-01-20 20:11:36 +01:00
Shyri Villar
92e7d0e69c fix ApiKeyAuth applyToHeader when no api-key is provided 2016-01-20 19:59:28 +01:00
wing328
9b8b1fbb7f Merge pull request #1922 from xhh/javascript-nodejs
[JavaScript] Make JavaScript client work in both Node.js and browser
2016-01-20 21:44:44 +08:00
xhh
34a941f352 Improve imports in api/models of Java clients
Closes #1810
2016-01-20 16:49:25 +08:00
wing328
cb8c3dfc2e update csharp readme 2016-01-20 12:00:57 +08:00
wing328
75a932bf45 Merge pull request #1912 from wing328/csharp_update_test2
[C#] store ApiClient default in Configuration.Default
2016-01-20 11:26:05 +08:00
xhh
3b5462c1e9 Use String for "binary" as a workaronud 2016-01-20 10:34:36 +08:00
xhh
9c580a2447 Set accept header for JavaScript client 2016-01-20 10:29:09 +08:00
wing328
b21c5f08a7 Merge pull request #1921 from wing328/php_generate_test
[PHP] generate files for unit testing models and API files
2016-01-20 10:05:20 +08:00
John Hancock
629567c5ac Fix project file option handling 2016-01-19 21:00:55 -05:00
John Hancock
b4bce238c2 CSharp: Optionally build csproj file 2016-01-19 21:00:54 -05:00
wing328
38bac9dfb4 fix byte[] in spring mvc and java inflector 2016-01-19 23:35:23 +08:00
xhh
40d83e7f52 Some cleanup 2016-01-19 22:52:05 +08:00
xhh
14630c7632 Make JavaScript client work in both Node.js and browser
* Replace jQuery with SuperAgent which works in both Node.js and browser
* Use UMD pattern (returnExports.js) to make the module exporting compatible
  with all major systems: AMD, Node.js (CommonJS) and browser
* Implement support of header and form parameters. Closes #1736
* Move HTTP requesting code to `ApiClient` and allow customizing options
  in it, e.g. "basePath"
* Update unit tests accordingly and add some tests for `ApiClient`
2016-01-19 22:21:36 +08:00
wing328
61c717b6de add comments 2016-01-19 19:50:27 +08:00
wing328
8927c1dc0f add test template for php 2016-01-19 14:49:32 +08:00
wing328
731fd4be33 fix typo 2016-01-19 10:40:43 +08:00
Shyri Villar
060f0f33c2 add test dependencies [android-volley-library] 2016-01-18 22:11:11 +01:00
Shyri Villar
97e1d1e273 fix networ error excetption for synchronous requests [android-volley-library] 2016-01-18 22:06:02 +01:00
Shyri Villar
51468503b2 fix post, put, delete and patch when body is null [android-volley-library] 2016-01-18 22:05:36 +01:00
wing328
86587607e1 add api test and model test files 2016-01-19 00:51:21 +08:00
wing328
dcd2c00fe6 fix empty object serialization issue 2016-01-18 21:42:24 +08:00
wing328
9fd4f39c8c update tostring to use sanitizeforserialization 2016-01-18 21:27:29 +08:00
Maelig Nantel
370a8d136f fixes 2016-01-18 11:35:57 +01:00
Maelig Nantel
89ed3bdb75 New fix 2016-01-18 11:16:04 +01:00
Maelig Nantel
b292ce54ce Update after merging 2016-01-18 10:10:55 +01:00
Maelig Nantel
a39942f43f Merge remote-tracking branch 'refs/remotes/swagger-api/master' into fix-java-warnings
# Conflicts:

#	modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/JaxRSServerCodegen.java
2016-01-18 10:10:27 +01:00
wing328
7b1dde3d85 Merge pull request #1911 from wing328/mapping_update_binary
Add "binary" mapping in code generators
2016-01-18 12:29:18 +08:00
wing328
417dcc8a86 update csharp configuration to avoid circular dependency, deprecate
ApiClient.Default
2016-01-18 11:39:32 +08:00
wing328
bfc83b330f fix indent, update perl & python sample 2016-01-17 19:32:50 +08:00
wing328
906bd2c7bf add binary mapping for code generator 2016-01-17 19:14:11 +08:00
wing328
1bae5c44b2 fix null apiclient in .net (windows) 2016-01-17 16:04:13 +08:00
Tony Tam
bde2bbab56 Merge pull request #1906 from swagger-api/issue-1905
added date library option
2016-01-15 16:15:41 -08:00
Tony Tam
70784a3d98 fixed templates 2016-01-15 14:28:55 -08:00
Tony Tam
04e0df3b4a added date library option 2016-01-15 14:20:20 -08:00
Maelig Nantel
8005931e5a Corrent issue 1885
Handle the Swagger "default" value for a parameter with the JAX-RS
@DefaultValue annotation. This correction will also be reported in the
new JAX-RS CXF Codegen.
2016-01-15 16:49:36 +01:00
Maelig Nantel
467939216c fix java warnings
Do not impact any feature. Juste correct some Java warnings (static
methods, unused imports or parameters...).
2016-01-15 14:02:55 +01:00
Maelig Nantel
faa4ecd0cd Support java code generation for UUIDProperty
A property defined as "type: string & format: uuid" is now generated in
Java using "java.util.UUID" class instead of a classical String. In the
Java, the UUID class do not provide a constructor. You may use the
method UUID.fromString(<uuid_string>) to construct your UUID object.
2016-01-15 12:39:25 +01:00
xhh
319c260678 Java okhttp-gson: support binary (byte array)
for body parameter and response.
Also Update Java default, jersey2 and okhttp-gson clients to support
(constant) query string in the `path` (to work with the 2 "fake"
petstore endpoints on binary).
2016-01-15 19:33:33 +08:00
wing328
bfb8cdce2e fix another replaceall in perl codegen 2016-01-15 16:03:35 +08:00
wing328
cbbb48a4e4 fix file.separator in replaceall (perl) 2016-01-15 15:47:40 +08:00
wing328
fee8acef97 fix isBinary, CodegenParameter copy, add isBinary to php api client 2016-01-15 11:43:02 +08:00