malli

cfleming 2024-11-08T20:30:31.329169Z

A while ago I posted about some upcoming improvements to Cursive, which would allow Malli errors to be rendered nicely in the editor. This is now out: https://cursive-ide.com/blog/cursive-1.14.0-eap2.html. If you use Cursive, the recommended way to check this out is the interactive tutorial at: https://github.com/cursive-ide/inline-tutorials. You can see examples there of various error types and play around with how they're rendered.

🎸 1
ikitommi 2024-11-09T08:10:40.032529Z

Thanks for new stuff in Cursive, just installing, will play with the malli-integration and report

cfleming 2024-11-08T20:32:14.474779Z

Feedback on either the error rendering itself, or the tutorials, is very welcome. Pull requests on the error rendering is also very welcome. I don't think I cover all cases covered by the Virhe pretty printer yet because I wasn't sure how to provoke all the error types.

Nikolas Pafitis 2024-11-08T22:02:06.498049Z

Let's say i have this registry in malli {:custom-schema some-custom-schema}. How can i retrieve the key :custom-schema if I know only some-custom-schema or its Schema representation?

2024-11-08T22:36:58.948559Z

Try iterating through the result of calling malli.registry/-schemas on your registry.