-
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
Add new utility functions: m/explain-data, m/data-explainer, mu/keys #707
Conversation
The output of m/explainer, m/explain isn't serializable as-is. You get an error like InvalidDefinitionException: No serializer found for class malli.core$_map_schema$reify$reify__9118 Provide alternatives m/data-explainer and m/explain-data which walk over the result and transform schemas to data using m/form.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good and clean PR, some changes requested.
the :schema keys are in known places, opt for direct update
plus add a test
I didn't rebase/squash anything to make reviewing easier. I can squash this into two nice commits if you want. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks really good, please update the docs (at least CHANGELOG) before/after merging.
The main issue I'm trying to fix here is not being able to serialize the output of m/explain. See commit message for more.
mu/keys was just something simple I've been missing so I'm adding it in the same PR :)