malli 2025-12-22

Hi, I have a newbie question: Why would this return true?

(mc/validate [:map [:count {:optional true :min 1 :max 10} :int]] {:count 0})
=> true
I want the validation to fail when :count value is not in min/max range.

(mc/validate [:map [:count {:optional true} [:int {:min 1 :max 10}]]] {:count 0}) => false

🙏🏽 1

I see, thank you!

I'm using light-theme Emacs. Malli's error messages are likely designed for dark-theme users, making them difficult to read for those using light-theme. Is it possible to configure these messages for light-theme?

➕ 1

Oh man this has also been killing me for a while, my background is a slightly-off-white (flatwhite theme) so those chars are practically invisible