Hey guys, anyone had this issue? `2023-01-07 00:1...
# server
c
Hey guys, anyone had this issue?
2023-01-07 00:12:00.230 [qtp1706939736-20] WARN  o.eclipse.jetty.server.HttpChannel MDC= - handleException /reference/api/swagger.json com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Joda date/time type org.joda.time.DateTime not supported by default: add Module "com.fasterxml.jackson.datatype:jackson-datatype-joda" to enable handling
Http4k & Open api
d
Try #http4k , but it seems like you're attempting to use a jodatime date object in your models. Overall jodatime isn't supported unless you also create a custom Jackson object . Any reason you're not using standard date time.classes (which are supported out of the box)?
j
Also it's telling you exactly how to resolve the problem
👍 1
c
Yea. thanks. I am using Exposed and it request joda datetime for datetime fields
@jw I did that but I still get this maybe I am doing it wrong or I am not loading the my ObjectMapper properly
d
Try following this guide and see if you still have a problem
c
Thanks David, I will take a look asap
d
If you're using the open API contracts from http4k, note that this is also the JSON marshaller that you will be passing into the open API renderer as well as using in your endpoints
c
yea. thanks
Thank you
I had to add it to OpenApi3() object
I missed that part before
What you shared was really helpful
d
np. we're here to help! (also try #http4k in future - you'll get a more targeted audience 🙂 )
c
Great!. Thanks
176 Views