schema 2016-08-02

Hi. I’m trying to figure out how to substitute both with conditional as suggested by the docs of both.

Say I have a schema like

(s/both {:a s/Int 
               s/Any s/Any} 
              {:b s/Int 
               s/Any s/Any})

I tried to use instead

(s/conditional 
                (constantly true) {:a s/Int s/Any s/Any}
                (constantly true) {:b s/Int s/Any s/Any})

However that will not check the 2nd condition. I.e.

(s/validate (s/conditional 
                (constantly true) {:a s/Int s/Any s/Any}
                (constantly true) {:b s/Int s/Any s/Any})
              {:a 2})