You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to suggest a fix in #774 but obviously more work, and a better understanding, are needed. I tried to make this bug report as accurate as possible but I know it doesn't pinpoint the root cause – I haven't been able to find it.
The text was updated successfully, but these errors were encountered:
In my use case, passing down to malli.error/humanize the decoded value instead of the input value removes the exception. Not sure if it is a good way to fix it though.
In some code I have a schema that is as close as possible to this one (edited for confidentiality):
I use reitit 0.5.18 with malli coercion. When a request body contains a slightly invalid value, like:
then with a debugger I can catch
humanize
being called twice. First with an explanation value that essentially boils down to:and the second time with an explanation value that is:
This latter value looks like it comes from the json-decoded, but malli-undecoded value. The issue is that it somehow breaks
humanize
:However, I'm very puzzled, because I can't reproduce the bug above:
I have observed that the issue disappear when I use a
:vector
instead of a `:set:I tried to suggest a fix in #774 but obviously more work, and a better understanding, are needed. I tried to make this bug report as accurate as possible but I know it doesn't pinpoint the root cause – I haven't been able to find it.
The text was updated successfully, but these errors were encountered: