fulcro

liebs 2026-01-19T13:23:21.164089Z

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

tony.kay 2026-01-19T14:05:10.749339Z

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.

tony.kay 2026-01-19T14:05:31.854609Z

don’t know if I planned it and didn’t write it, or wrote it and later deleted it (the former is more likely)

tony.kay 2026-01-19T14:06:03.931209Z

I can’t find an implementation of it in the git history

tony.kay 2026-01-19T14:11:53.475729Z

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.

tony.kay 2026-01-19T14:12:33.578529Z

Choosing to use clojure.spec is just one of many options (I use Malli these days)

tony.kay 2026-01-19T14:16:10.644149Z

it’s just a typo. I’ve fixed the docstring and pushed a new version