Fork me on GitHub
#clojure-spec
<
2022-11-09
>
prnc12:11:55

Would anyone be able to share a way / ‘workaround’ for of adding docs to specs? Has anyone gone beyond a map keyword -> docstring? — which is what I’m about to do, so asking here for some lessons learnt :) (I’m assuming this must have been done / attempted a number of times (since it is the most requested feature for spec2 IIUC but I have not run into any specific examples, caveats or advice))

mpenet12:11:15

essentially: bake your own metadata registry

mpenet12:11:40

there's nothing built-in

Alex Miller (Clojure team)14:11:39

this is one of the most highly voted requests we have and it's still on our list for spec 2