Commit Graph

17 Commits

Author SHA1 Message Date
Chris Birchall
b7cffe4121 Add and register Jackson Joda-Time module 2014-01-26 11:31:08 +09:00
Chris Birchall
6b9cba1411 Add joda-time support to BasicJavaGenerator
* Add joda-time as a dependency in pom.xml
* Add import mappings for commonly used joda-time classes
2014-01-17 10:34:19 +09:00
Robert Blair
9b6995f28c Merge branch 'master' into issues/67 2013-11-29 10:49:48 -08:00
Robert Blair
830ad87fcb issues/91 - enum in model commented out by default 2013-11-27 18:03:57 -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
Robert Blair
1e2f7cb1f8 To throw expected ApiException instead of NullPointerException, check required parameters before use 2013-11-27 01:13:51 -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
Mark Crowther
7bde2ffd6e Fix Java Generator to always generate valid Java variable names 2013-10-03 15:59:40 +01:00
Tony Tam
a3f5c0c688 fixed content type for java client 2013-08-08 16:05:05 -07:00
Tony Tam
2199d08e72 added support for artifact id 2013-06-01 12:11:12 -07:00
Tony Tam
5e801dd1d7 updated repos, removed scala runtime 2013-04-22 09:49:15 -07:00
Tony Tam
871e0e30f1 removed swagger-core deps 2013-04-04 22:17:25 -07:00
Hongbin Lu
c0c2f0bebc Fixed an error that escaping a non-string object 2013-02-21 17:33:37 +00:00
Tony Tam
a4afa9bac2 updated to use case classes, removed swagger-core deps 2012-10-06 05:57:21 +02:00
Tony Tam
22783f8f0a updated package 2012-09-25 22:29:49 -07:00
Tony Tam
e2dbe61adf updated to use swagger 1.1.0 2012-09-23 18:43:14 -07:00
Tony Tam
f7a929bd02 renamed template dir 2012-08-28 16:52:18 -07:00