I don't know how many folks here follow http://ask.clojure.org but it would be nice for someone to go and answer this https://ask.clojure.org/index.php/9486/how-to-consume-the-chan-return-by-go-block-in-cljs
(s/valid?
(s/keys)
report-data)
=> false
(s/explain-data
(s/keys)
report-data)
=> nil
(s/valid? (s/keys) (apply hash-map report-data))
=> true
(type report-data)
=> clojure.lang.PersistentArrayMap
Any idea what's going on there?
@kenny I can't repro with Spec 1. Is that Spec 1 or Spec 2 you're using?
Spec 1
user=> (require '[clojure.spec.alpha :as s])
nil
user=> (def report-data {:a 1 :b 2})
#'user/report-data
user=> (type report-data)
clojure.lang.PersistentArrayMap
user=> (s/valid? (s/keys) report-data)
true
user=> (s/explain-data
(s/keys)
report-data)
nil
user=> (s/valid? (s/keys) (apply hash-map report-data))
true
user=>
What sort of keys are in your report-data
map?
Keywords
Did you mean something else?