ring-swagger

ring-swagger & compojure-api
jdt 2020-01-21T16:52:51.003300Z

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?

ikitommi 2020-01-21T17:28:09.004700Z

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

jdt 2020-01-21T17:28:49.005100Z

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