I have a route with some data on it where the value is a Clojure record. When I pass that route through reitit.ring/router it converts it to a regular map. This is on version 0.7.0
The source of the problem appears to be here. Perhaps a fix could be as simple as adding a condition prior to this line for record? and treating it as an opaque value without further de-structuring?
I have a route with some data on it where the value is a Clojure record. When I pass that route through
reitit.ring/router
it converts it to a regular map. This is on version0.7.0
The source of the problem appears to be here. Perhaps a fix could be as simple as adding a condition prior to this line for
record?
and treating it as an opaque value without further de-structuring?Reproducible example:
Note that
:test
in the output is a plain map and no longer a record.