Skip to content

Commit

Permalink
Merge pull request #399 from bfabry/patch-1
Browse files Browse the repository at this point in the history
Use fully qualified keyword
  • Loading branch information
w01fe committed Sep 28, 2017
2 parents 28fef3f + 65c1587 commit 4b530ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/clj/schema/experimental/generators.clj
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@
(defn element-generator [e params]
(if (vector? e)
(case (first e)
::schema.spec.collection/optional
:schema.spec.collection/optional
(generators/one-of
[(generators/return nil)
(elements-generator (next e) params)])

::schema.spec.collection/remaining
:schema.spec.collection/remaining
(do (macros/assert! (= 2 (count e)) "remaining can have only one schema.")
(generators/vector (sub-generator (second e) params))))
(generators/fmap vector (sub-generator e params))))
Expand Down

0 comments on commit 4b530ee

Please sign in to comment.