malli

jyn 2025-09-04T02:03:46.327569Z

hi! is there any way to tell malli running in dev mode to truncate the function arguments if they're too long? i have a map that's several thousand lines long, i want to print at most the first and last ten

jyn 2025-09-04T02:04:18.281739Z

imagine this but going on for another 6000 lines

jyn 2025-09-04T03:21:29.428369Z

i worked around this with *print-level* and that worked ok. it was very hard to find that print-level existed, i had to dig into the source of <https://github.com/metosin/virhe/blob/71581322a1c30f3e67d46aed35762f6ef7ad8cb1/src/virhe/core.cljc#L115>. maybe that could be documented somewhere?

2025-09-04T14:06:39.856169Z

The https://github.com/metosin/malli/blob/master/docs/function-schemas.md#pretty-errors section of the Function Schema documentation covers this better than the README

jyn 2025-09-04T14:07:21.324919Z

oh you know i read that page when i set this up and i forgot to reread it when i ran into trouble 😅