This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-07-24
Channels
i'm trying to edit malli.core, i can't figure out how to step through (get into a working cider debugging state) -map-schema. i tried pulling out the validctor method into it's own fn and setting that to cider-debug-defun-at-point
but without success. any tips?
(m/schema
[:map {:closed true}
[:optional {:optional true} [:enum :a :b]]
[:specified :int]])
code i'm using to try to trigger -map-schemaI've also tried this, and i get a stack overflow error. i'm not really sure how to approach developing for malli.
(m/validate
(m/schema
[:schema {:registry {:map (-map-schema)}}
[:map {:closed true}
[:optional {:optional true} [:enum :a :b]]
[:specified :int]]
])
{
;;:hi "valid"
:specified 1
;;"bad" :error
}
)