Fork me on GitHub
#reitit
<
2019-06-24
>
danieroux12:06:55

How can I capture query-params while using reitit.frontend.easy?

danieroux12:06:13

Specifically - example.code/#/?code=xxxx captures what I expect.

stefan14:06:40

@danie the returned match contains a map in the :query-params key

👍 4
danieroux12:06:23

That was what I expected, and the map stayed empty until I set {:use-fragment false} - not sure why

plins21:06:55

hey everyone, right now looking at the swagger page, I see this is there a way to define a example by hand? or at least use a generator to use a proper example that would pass the specs? created-at is an ISO 8601 string and its spec looks like this

(defn iso8601? [str]
  (inst?
    (try
      (inst/read-instant-timestamp str)
      (catch Exception e e))))
(s/def ::created-at (s/and string? iso8601?))