Skip to content

Commit

Permalink
Fix reflection (fixes #24)
Browse files Browse the repository at this point in the history
  • Loading branch information
gfredericks committed Mar 12, 2022
1 parent b0ecf2c commit f70787a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/schema_generators/generators.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
#?(:clj Object :cljs js/Object) generators/any
s/Any generators/any
s/Uuid generators/uuid
s/Inst (generators/fmap (fn [ms] (#?(:clj java.util.Date. :cljs js/Date.) ms)) generators/int)}
s/Inst (generators/fmap (fn [ms] (#?(:clj java.util.Date. :cljs js/Date.) ^long ms)) generators/int)}
#?(:clj (into {}
(for [[f ctor c] [[doubles double-array Double]
[floats float-array Float]
Expand All @@ -154,7 +154,7 @@

(defn enum-generators [s]
(when (instance? schema.core.EnumSchema s)
(let [vs (vec (.-vs ^schema.core.EqSchema s))]
(let [vs (vec (.-vs ^schema.core.EnumSchema s))]
(generators/fmap #(nth vs %) (generators/choose 0 (dec (count vs)))))))


Expand Down

0 comments on commit f70787a

Please sign in to comment.