Skip to content
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

Problem with Joda DateTime - Play 2.2 #439

Closed
mycentrio opened this issue Jan 23, 2014 · 1 comment
Closed

Problem with Joda DateTime - Play 2.2 #439

mycentrio opened this issue Jan 23, 2014 · 1 comment

Comments

@mycentrio
Copy link

I'm trying to use swagger for my scala Play 2.2 project. It seems there's a problem with Joda DateTime. Using the sample play project, in 'Order' case class, I changed the shipDate from java Date to Joda DateTime and it throws an error when I call /store/order API:

[JsonMappingException: Class org.joda.time.tz.CachedDateTimeZone has no default constructor; can not instantiate default bean value to support 'properties=JsonSerialize.Inclusion.NON_DEFAULT' annotation (through reference chain: scala.collection.convert.SeqWrapper[0]->models.Order["shipDate"]->org.joda.time.DateTime["zone"])]

Please help.

P.S. I removed "com.wordnik" %% "swagger-play2-utils" % "1.3.2" from dependencies because the latest version in swagger repository was 1.3.1 and the project could not compile with 1.3.2.

@fehguy
Copy link
Contributor

fehguy commented Mar 30, 2014

Hi, please update your project to use swagger-play2 for 1.3.4 and it should work as-is.

@fehguy fehguy closed this as completed Mar 30, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants