Fork me on GitHub
#ring-swagger
<
2020-01-21
>
jdt16:01:51

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?

ikitommi17:01:09

@dave.tenny you could look at the spec-tools for tests, options and places for improvement.

jdt17:01:49

I looked int he compojure, compojure-api, and muuntaja repos, hadn't thought to look at spec-tools.