Fork me on GitHub
#malli
<
2019-10-30
>
eskos13:10:20

@ikitommi Had a thought, should I create an issue on GitHub about my “non-empty string” problem or do you think this is eventually solved as side effect or by other means?

ikitommi14:10:11

issue welcome, and suggestion how to fix that 🙂

Toni Vanhala14:10:13

There’s not-empty in core, while blank? is in clojure.string

Toni Vanhala14:10:40

I would expect [:and string? not-empty] to work out-of-the-box, while blank? is arguable

ikitommi14:10:47

not-empty is not registered by default, should it be?

ikitommi14:10:11

[:and string? [:fn {:error/message "should not be empty"} 'not-empty]]

eskos14:10:40

Would be nice 🙂

eskos14:10:07

Although I think complements are also useful in general…