Re: multi-spec and unqualified keys

2016-10-03 Thread Beau Fabry
Changing these two lines works, but I don't know whether it would cause other issues ``` (defmulti event-type :type) (s/def :event/event (s/multi-spec event-type :type)) ``` On Monday, October 3, 2016 at 4:01:32 AM UTC-7, Karol Hosiawa wrote: > > I don't know how to define multi-spec so that it

multi-spec and unqualified keys

2016-10-03 Thread Karol Hosiawa
I don't know how to define multi-spec so that it works with unqualified keys and generators. An example from the official guide: https://clojure.org/guides/spec#_multi_spec (s/def :event/type keyword?) (s/def :event/timestamp int?) (s/def :search/url string?) (s/def :error/message string?)