Is this a stale docstring? fs/get-spec-validity:
> Fields are marked as having been interacted with by programmatic action on your part via
> the validate* mutation helper can be used in a mutation to mark fields ready for validation.
But I can find no such symbol (`validate*`) defined anywhere in Fulcro
hm. The namespace hasn’t been touched much in 5-6 years…but yeah, the docstring is referring to a helper that doesn’t exist.
don’t know if I planned it and didn’t write it, or wrote it and later deleted it (the former is more likely)
I can’t find an implementation of it in the git history
The mark-complete* mutation helper is really the thing you want. Validation is a pure function of state, so the act of “validating” isn’t a thing. A field’s value is either valid or not based on your check. We don’t “denormalize” that something is valid INTO the state map…that could get out of sync. I’ll fix the docstrings.
Choosing to use clojure.spec is just one of many options (I use Malli these days)
it’s just a typo. I’ve fixed the docstring and pushed a new version