Fork me on GitHub
#schema
<
2020-01-17
>
m0smith18:01:12

(def IntOrStr (s/conditional str? s/Str :else s/Int))

m0smith18:01:28

There are a few examples of conditional https://github.com/plumatic/schema. There are some things like both and either that are deprecated in favor of conditional.