This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-06-03
Channels
- # beginners (446)
- # boot (16)
- # cljs-dev (2)
- # cljsrn (30)
- # clojars (2)
- # clojure (143)
- # clojure-finland (1)
- # clojure-greece (1)
- # clojure-nl (1)
- # clojure-russia (2)
- # clojure-spec (20)
- # clojure-uk (7)
- # clojurescript (167)
- # code-reviews (1)
- # community-development (12)
- # core-async (27)
- # cursive (3)
- # data-science (9)
- # datascript (2)
- # emacs (1)
- # graphql (46)
- # immutant (5)
- # jobs (2)
- # leiningen (1)
- # luminus (1)
- # lumo (76)
- # off-topic (79)
- # perun (2)
- # protorepl (33)
- # re-frame (21)
- # reagent (62)
- # ring-swagger (1)
- # rum (18)
- # spacemacs (6)
- # specter (4)
- # test-check (4)
- # unrepl (9)
- # untangled (2)
- # vim (4)
- # yada (1)
It is design decision, so you could opt in to writing detailed spec, instead of being forced to.
@tclamb seems like a bug, but would be curious to see the actual value causing the error
@alexmiller s/exercise
is generating maps with clojure.lang.LazySeq
keys, like {(lazy-seq '(:r)) :r}
but I think that’s an artifact of the map value spec being keyword?
instead of e.g. s/cat
hey all I am trying to wirite a spec that would satisfy some json data in which the keys have a shape but are not defined eg
{
"x-identity": "2"
"x-name": " aaa"
"x-[some other string]": "bbb",
}
Can I use something like
(s/def ::x-object (s/keys ???)
where I can plugin a spec that describes the shape of the keys namely %(string/starts-with? % "x-")
now what if I have a json with a mix of well know keys and patterned keys like the ones above eg
{
"name": .. ,
"age":...,
"x-internal"....
"x-created"...
}