Skip to content

Commit a5c92be

Browse files
committed
updated sample
1 parent 8de8f48 commit a5c92be

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

samples/client/petstore/scala/src/main/scala/io/swagger/client/ApiInvoker.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import scala.collection.JavaConverters._
1717
import scala.collection.mutable.HashMap
1818

1919
import com.fasterxml.jackson.module.scala.DefaultScalaModule
20+
import com.fasterxml.jackson.datatype.joda.JodaModule
2021
import com.fasterxml.jackson.core.JsonGenerator.Feature
2122
import com.fasterxml.jackson.databind._
2223
import com.fasterxml.jackson.annotation._
@@ -26,6 +27,7 @@ object ScalaJsonUtil {
2627
def getJsonMapper = {
2728
val mapper = new ObjectMapper()
2829
mapper.registerModule(new DefaultScalaModule())
30+
mapper.registerModule(new JodaModule());
2931
mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);
3032
mapper.setSerializationInclusion(JsonInclude.Include.NON_DEFAULT)
3133
mapper.configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false)

0 commit comments

Comments
 (0)