metosin / malli

High-performance data-driven data specification library for Clojure/Script.
Eclipse Public License 2.0
1.43k stars 204 forks source link

Datafy representation for reified schemas #1054

Open vemv opened 1 month ago

vemv commented 1 month ago

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