Fork me on GitHub
#malli
<
2022-01-04
>
pinkfrog14:01:19

Is the map syntax the recommended way to go? https://github.com/metosin/malli#map-syntax

ikitommi14:01:54

vector-syntax is the way to go, but map should work too. > NOTE: Map Syntax / SchemaAST is considered as alpha and subject to change.

thanks3 1
ikitommi14:01:24

with cursive + Clojure Extras + clj-kondo. Looking good 🙂

dharrigan14:01:08

I am liking the metadata version

dharrigan14:01:21

to me, precisely what metadata is all about 🙂

emccue15:01:51

i like it too, just not that dev tooling can’t pick it up without a manual refresh

emccue15:01:04

and the m/=> version there doesn’t work because if you load the whole file you load the schema, which triggers wrapping the function, and then load the function which will be unwrapped

Karol Wójcik15:01:00

Plumatic style. Cant wait to see it released ;3

ikitommi15:01:53

I think we can solve the dev-tooöing issues with first two, with polling and var-watching.

ikitommi16:01:41

I don't think so, but adding a queue with a small delay should do the trick here.

Michael Gardner17:01:33

seems tricky to deal with the case where a var is defined and then immediately used

Ben Sless18:01:35

teaser - how does emitting malli schema fron jackson annotations sound? 😛

emccue20:01:52

i swear i dislike actual physical people named jackson at this point just by association

😆 1
Ben Sless07:01:45

I always think of Daniel Jackson from Stargate which puts me in a more positive mindset