Fork me on GitHub
#reitit
<
2019-07-26
>
rlander12:07:25

Hey guys, are there any docs pointing to adding custom coercions for the swagger integration?

rlander12:07:26

My timestamps are formatted as java.time.LocalDateTime, but the lib doesn't seem to support it.

rlander13:07:56

Ok, so, I thought that reitit used metosin/ring-swagger but apparently that's not the case

rlander13:07:11

Alright, figured it out after reading the source: retit uses schema-tools instead of ring-swagger

rlander13:07:23

(defmethod schema-tools/transform-type java.time.LocalDateTime [_ _] {:type "string" :format "date-time"}) solved it