Skip to content
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

Datafy representation for reified schemas #1054

Open
vemv opened this issue May 8, 2024 · 1 comment
Open

Datafy representation for reified schemas #1054

vemv opened this issue May 8, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@vemv
Copy link

vemv commented May 8, 2024

Malli provides misc objects that reify IntoSchema, Schema, etc.

While those print fine in the repl (they look like data, can easily be understood), they don't look great in tools like the CIDER inspector:

image

A reasonable and universal solution would be to make those objects also implement Clojure's own datafy.

All visual tools (Cider, REBL, Portal, etc) understand datafy.

Probably, a good datafy representation would feel pretty close (if not identical) to what is already printed to the repl.

Thanks - V

@ikitommi ikitommi added the enhancement New feature or request label Jan 1, 2025
@ikitommi
Copy link
Member

ikitommi commented Jan 1, 2025

Not user of Cider, but inspectable schemas would be great. Sadly on can't implement Protocols over protocols, would need to copy&paste it to all Schema types. 75% of malli core already suffers from this (copy&pasting). Ideas welcome on how to make it in a simple way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants