This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-04-18
Channels
- # announcements (1)
- # aws (13)
- # beginners (55)
- # calva (8)
- # cider (73)
- # cljs-dev (96)
- # clojure (119)
- # clojure-europe (4)
- # clojure-italy (41)
- # clojure-nl (14)
- # clojure-uk (6)
- # clojurescript (90)
- # cursive (14)
- # data-science (1)
- # datomic (20)
- # dirac (1)
- # emacs (32)
- # figwheel-main (11)
- # fulcro (81)
- # hoplon (2)
- # jobs (1)
- # lein-figwheel (2)
- # luminus (1)
- # lumo (19)
- # nyc (3)
- # off-topic (60)
- # other-languages (1)
- # pedestal (5)
- # quil (1)
- # re-frame (3)
- # reagent (3)
- # reitit (5)
- # remote-jobs (1)
- # ring-swagger (2)
- # shadow-cljs (43)
- # sql (15)
- # tools-deps (20)
- # vim (21)
- # yada (6)
Hi, I’ve got two specs defined as follow:
(s/def :test/a (into #{} [:a :c]))
(s/def :test/b #{:a :c})
with (spec-tools.swagger.core/transform :test/b)
i can get correct enum and type info, for the first one, it just transform to empty map. Is this a bug with spec-tools? Thanks
transform
is based on parsing the spec form.
The form for a
here is (clojure.core/into #{} [:a :c])
.
And most likely there's no "codepath" (they are defined by defmethod st-visitor/visit-spec
extensions) which is triggered for into ...
.
So I guess it's just a limitation of the algorithm.