Hi All. I swear I have done this before, but I cannot find it or an answer on the web: Is there a way to validate that a map adheres to a certain spec for keys and a different spec for values, rather than something like s/keys where I know the keys up front?
What I am trying to do specifically is ensure that all the values are valid json strings
Are you thinking of https://clojure.github.io/spec.alpha/clojure.spec.alpha-api.html#clojure.spec.alpha/map-of
Yes! ty!