-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configuration option to use Joda types #110
Comments
From [email protected] on June 17, 2013 20:21:48
but I realise this is not a particularly pleasant change to have to make to your schemas. I think a new config argument that instructs the plugin to use Joda DateTime values might be a good idea. Of course you need to include the Joda module if you want these values to be serializable by Jackson, but I see no reason why this shouldn't be available as a config option. |
From [email protected] on June 17, 2013 21:35:11 thank you |
From [email protected] on June 17, 2013 22:54:44 So it's a bug, then ;) |
From [email protected] on June 17, 2013 22:55:52 |
From [email protected] on June 19, 2013 22:06:40 |
From [email protected] on June 20, 2013 08:28:48 Now the actual solution is to add joda-time to the buildscript classpath too, then it'll behave as desired. |
From [email protected] on June 20, 2013 16:24:05 The Maven plugin explicitly resolves the project's compile classpath and adds it to the plugin execution to workaround this problem. The Ant task also offers a solution, in that it allows you to explicitly provide additional classpath elements as arguments of the task. |
From [email protected] on June 20, 2013 19:36:34 |
Original author: [email protected] (June 17, 2013 12:30:45)
Given a normal simple type declaration like { "type": "string", "required": "true", "format": "date-time" }, I would like to use joda-time instead of the jvm date types. I've tried several ideas like using org.joda.time.DateTime for the value of type (will result in Object as type) or an additional javaType (will generate a new DateTime class) or format (will result in String as type)
Is there a way to reference any other pre-existing java type? If not, would you consider implementing this?
Thank you
Patrick
Original issue: http://code.google.com/p/jsonschema2pojo/issues/detail?id=110
The text was updated successfully, but these errors were encountered: