This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-06-11
Channels
- # announcements (8)
- # babashka (6)
- # beginners (19)
- # biff (2)
- # clerk (3)
- # clojure (13)
- # clojure-europe (4)
- # clojure-norway (27)
- # clojure-spec (3)
- # clojuredesign-podcast (3)
- # clojurescript (36)
- # conjure (4)
- # core-typed (4)
- # cursive (2)
- # fulcro (8)
- # gratitude (1)
- # hyperfiddle (4)
- # off-topic (34)
- # re-frame (4)
- # sci (11)
- # scittle (1)
- # squint (7)
- # xtdb (5)
is it possible to use spec to validate maps where keys are strings? eg. to check {"name" "Joe" "age" 66}
to make sure "name"
and "age"
are present and that they match string?
and int?
respectively. I might be missing something obvious, but I can only see examples with keyword-based maps.
You can use map-of but not s/keys
thanks @U064X3EF3, I'll have a play with map-of