File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
samples/client/petstore/scala/src/main/scala/io/swagger/client Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ import scala.collection.JavaConverters._
17
17
import scala .collection .mutable .HashMap
18
18
19
19
import com .fasterxml .jackson .module .scala .DefaultScalaModule
20
+ import com .fasterxml .jackson .datatype .joda .JodaModule
20
21
import com .fasterxml .jackson .core .JsonGenerator .Feature
21
22
import com .fasterxml .jackson .databind ._
22
23
import com .fasterxml .jackson .annotation ._
@@ -26,6 +27,7 @@ object ScalaJsonUtil {
26
27
def getJsonMapper = {
27
28
val mapper = new ObjectMapper ()
28
29
mapper.registerModule(new DefaultScalaModule ())
30
+ mapper.registerModule(new JodaModule ());
29
31
mapper.setSerializationInclusion(JsonInclude .Include .NON_NULL );
30
32
mapper.setSerializationInclusion(JsonInclude .Include .NON_DEFAULT )
31
33
mapper.configure(SerializationFeature .WRITE_DATES_AS_TIMESTAMPS , false )
You can’t perform that action at this time.
0 commit comments