-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failure to decode :enums
having keywords
#819
Comments
Oh, I see. This is a bug. We are composing That said, I think the (m/decode
[:map-of :int :int]
{:kikka :kukka}
(mt/json-transformer))
; => {"kikka" :kukka} Like |
Previously, json-transformer would always decode map keys to strings, even if the string could not be decoded to the target type. See metosin#819 (comment)
Fixed the thing ikitommi mentioned. New behaviour: (m/decode
[:map-of :int :int]
{:kikka :kukka}
(mt/json-transformer))
; => {:kikka :kukka} |
Thanks for getting this in! |
Found in version :
0.10.0
Previously working in :
0.9.2
Reproducible in
master
: yesGiven schema:
When I run this:
decode
under v0.9.2
behaves properly:decode
using v0.10.0
does not:transforming_enums.clj.zip
N.B. If remove/comment out the
:enum/:=
entries in-json-decoders
the code behaves as expected.The text was updated successfully, but these errors were encountered: