Commit Graph

781 Commits

Author SHA1 Message Date
gyeh
bbb682c13d Fix docs to point to correct swagger spec URL 2014-01-22 12:01:44 -08:00
Tony Tam
42a8514c22 updated to scalatra 2.3 2014-01-21 09:40:42 -08:00
Tony Tam
ffca1e2969 updated listings 2014-01-21 09:39:30 -08:00
Tony Tam
1aa65bc14b Merge pull request #131 from cb372/fix-auth-deser
Fix deserialization of "authorizations" fields
2014-01-21 09:36:56 -08:00
Chris Birchall
1f46819b61 Fix deserialization of "authorizations" fields
Deserializer should expect a Map[String, AuthorizationType], not a
List[String].
2014-01-21 20:17:34 +09:00
Tony Tam
5892fdb2bb manual merge of #125 2014-01-16 20:34:26 -08:00
Tony Tam
32d792de01 Merge pull request #122 from vaelen/android-ignore-ssl-certificates
Update android target to work with self signed certificates if needed.
2014-01-16 20:30:19 -08:00
Tony Tam
82646f34ca Merge pull request #108 from backstop/generate-client-without-exit
Extract actual work from generateClient so that we can call it without killing the JVM.
2014-01-16 20:29:27 -08:00
Tony Tam
4f25ea7e6b Merge pull request #127 from cb372/fix-pom-fields
Improve groupId, artifactId, name in generated pom.xml
2014-01-16 20:19:25 -08:00
Chris Birchall
146f5c4c2a Improve groupId, artifactId, name in generated pom.xml
1. Replace hardcoded groupId (`com.wordnik`) with `package` variable.

2. artifactId and name were using non-existent variable `artifactId`.
This results in an empty artifactId, which makes Maven puke.
Replaced them with a sensible hardcoded value, "api-client".
2014-01-17 11:39:22 +09:00
Tony Tam
a413efc3ca Merge pull request #121 from vaelen/fix-android-param-names
Fixes a bug where the wrong name was being used for header parameters in the Android code generator.
2014-01-16 13:36:57 -08:00
Tony Tam
6c8aed5dcc Merge pull request #112 from vaelen/fix-no-content
Updated Java client to handle the case of a NO_CONTENT response.
2014-01-16 13:36:06 -08:00
Andrew Young
52905fd6de Adds http scheme back in. 2014-01-08 16:32:30 -08:00
Andrew Young
f8807c7440 Code cleanup. 2014-01-08 16:32:13 -08:00
Andrew Young
755591f9e5 Updates the android target to use a version of HttpClient that is closer
to the version shipped with Android.  Also adds support for skipping SSL
certificate verifcation.  This allows the client to be used with self
signed certificates.

Conflicts:
	src/main/resources/android-java/apiInvoker.mustache
2014-01-08 16:31:50 -08:00
Andrew Young
896d0d4b54 [#61769706] Fixes a bug where the wrong name was being used for header
parameters in the Android code generator.
2014-01-06 22:54:42 -08:00
Tony Tam
cf95d4e59e added android sample 2014-01-06 12:27:57 -08:00
Tony Tam
b503994577 added android sample 2014-01-06 12:27:31 -08:00
Tony Tam
569f77b512 added yml2swagger 2013-12-20 16:42:59 -08:00
Tony Tam
773fb89acb Merge pull request #111 from RobBlairInq/issues/67
Issues/67 - generate expected exceptions in java templates when parameters are missing
2013-12-04 23:32:11 -08:00
Tony Tam
890b1ee3c2 updated package 2013-12-03 12:15:20 -08:00
Andrew Young
bfb5b721c5 Merge remote-tracking branch 'upstream/master' into fix-no-content
Conflicts:
	samples/client/petstore/java/src/main/java/com/wordnik/client/ApiInvoker.java
2013-12-02 13:42:15 -08:00
Robert Blair
9b6995f28c Merge branch 'master' into issues/67 2013-11-29 10:49:48 -08:00
Tony Tam
1b8bb4a0a6 rebuilt client 2013-11-28 13:28:26 -10:00
Tony Tam
7f35b875a4 Merge branch 'issues/91' of git://github.com/RobBlairInq/swagger-codegen into RobBlairInq-issues/91 2013-11-28 10:56:36 -10:00
Tony Tam
b5d2ed0322 Merge pull request #113 from RobBlairInq/issues/rebuildall
add script to run all the sample build scripts
2013-11-28 11:01:37 -08:00
Robert Blair
a7b78a6210 add script to run all the sample build scripts 2013-11-27 20:30:31 -08:00
Robert Blair
90c14fd116 issue/91 - and also check in the generated fils 2013-11-27 20:04:57 -08:00
Robert Blair
830ad87fcb issues/91 - enum in model commented out by default 2013-11-27 18:03:57 -08:00
Rob Blair
3a8928f869 issues/91 - regenerate petstore java files 2013-11-27 14:19:56 -08:00
Rob Blair
f883c5e77c issues/91 - allow enum and min/max to be used in templates
* parse numeric min / max values, include in parameters
* pass along the allowable values in the model used by templates
* ensure ‘hasMore’ is set for more parameter lists used by templates
* java model now includes min / max in comment, and allowed enum values as model children
* note: enums in spec can contain non-java characters, so the User.java in examples does not compile presently.
2013-11-27 14:18:35 -08:00
Andrew Young
8cc83d180d Fixed spacing issue. 2013-11-27 12:58:58 -08:00
Andrew Young
65cc529ec6 Updated to handle the case of a NO_CONTENT response. 2013-11-27 12:52:38 -08:00
Andrew Young
9686ceed2d Updated sample code to reflect changes. 2013-11-27 12:52:38 -08:00
Robert Blair
2c73efa536 And rebuild the samples for android-java 2013-11-27 08:02:42 -08:00
Robert Blair
800312361f Also android-java templates:
Rebuild wording sample ApiInvoker from latest.To throw expected ApiException instead of NullPointerException, check required parameters before use
2013-11-27 08:02:03 -08:00
Robert Blair
59897c19a9 Rebuild wording sample ApiInvoker from latest. 2013-11-27 01:16:58 -08:00
Robert Blair
08a3e9e881 Rebuild generated java samples with ApiException checking properly located 2013-11-27 01:16:21 -08:00
Robert Blair
1e2f7cb1f8 To throw expected ApiException instead of NullPointerException, check required parameters before use 2013-11-27 01:13:51 -08:00
Robert Blair
17c38115e6 rebuild java files before changes to template 2013-11-27 01:05:13 -08:00
Robert Blair
0ee6531fcd Version mapping for scala 2.10.* should be consistent. 2013-11-27 01:02:04 -08:00
George Shakhnazaryan
87c12c155d Extract actual work from generateClient so that we can call it without killing the JVM. 2013-11-19 15:55:06 -06:00
Tony Tam
0d40a53e06 Merge pull request #101 from joeltgf/master
Change "success" response status code in Java ApiInvoker to all 2xx responses vs. just 200.
2013-11-04 09:57:09 -08:00
Joel Caplin
c779905163 Rationalize response status code check. Ensure that all bona fide 2xx responses are treated in the same way that "200 OK" is.
Previously, was explicitly checking for response code 200 (ClientResponse.Status.OK).

Now, checks the family of the response to make sure it is successful (Family.SUCCESSFUL). This enables us to POST to resources that return 201 created - without having to handle a checked ApiException.
2013-10-31 18:23:44 -07:00
Tony Tam
59da358eb5 Merge branch 'master' of github.com:wordnik/swagger-codegen 2013-10-22 12:08:56 -07:00
Tony Tam
b815ffa403 formatting 2013-10-22 12:08:43 -07:00
Tony Tam
27a8be2381 upped version for release 2013-10-22 12:08:31 -07:00
Tony Tam
d5b53a1778 updated templates 2013-10-22 02:24:37 -07:00
Tony Tam
01b745c366 added hack to support writing json models in 1.1 format 2013-10-22 02:23:50 -07:00
Russell Horton
af96f33e6f regenerated python, python3 and php clients 2013-10-18 16:24:08 -07:00