I'm trying to use some date/time inputs to a compojure-api application that declares the query parameters as (prismatic schema) s/Inst
. While the API seems to work with an input date like 2014-02-18T18:25:37.456Z
, other ISO 8601 formats don't work, e.g. 20140218T182537Z
. I don't see any time input parsing/coercion tests in the compojure/compojure-api tests, so I wondered what I'd need to do to enhance the parsing, or indeed what the rules are for Inst
input syntax out of the box?
@dave.tenny you could look at the spec-tools for tests, options and places for improvement.
I looked int he compojure, compojure-api, and muuntaja repos, hadn't thought to look at spec-tools.
https://github.com/metosin/spec-tools/blob/master/test/cljc/spec_tools/transform_test.cljc#L82-L91