Closed elahti closed 8 years ago
Thanks for the report. either
is deprecated as of 1.0.0, and does not work with recursive
anymore. Please replace either
with conditional
, if
, or cond-pre
(when applicable). In this case, since Str
and Recursive
are superficially different, cond-pre
will work as a drop-in replacement for either
.
My bad. Thanks!
Schema validation seems to fail to
StackOverFlowError
when using recursive schemas combined witheither
.The following validation works:
But the following doesn't:
I'm unsure if I'm just misusing the
either
there but it does work like that when it isn't used withrecursive
. For example(s/either s/Str s/Int)
works just fine, allowing Integers or Strings.I'm using schema.core version
1.1.1
with Clojure.