Fork me on GitHub
#malli
<
2022-05-20
>
plins14:05:18

hello everyone, I’m using reitit and malli to validate JSON requests to endpoints of my API I would like to use the malli registry, in a spec fashion, to define keys first, and afterwards referencing them in a map. doing this way would allow me to https://clojure.org/about/spec#_decomplect_mapskeysvalues the problem Im facing is: the json payload will spawn un-qualified keys, and the registry only works with qualified keys what would be the best solution to this problem? I would like to avoid [:key :ns/key]

jasonjckn03:02:57

what'd you end up doing here

jasonjckn03:02:05

facing a similar problem

plins19:02:26

gave up and used the suggested way

Joel17:03:05

@U3QUAHZJ6 What is the “suggested way”?

jasonjckn20:03:23

[:key :ns/key]

jasonjckn20:03:59

upvote/comment