schema

Daouda 2018-11-28T12:40:35.001Z

hey guys, maybe i am wrong, but look like s/if or s/cond-pre are used for specifiying if you datatype will be a map or vector or whatever. What i am looking for is a way to say that something will be a vector of vector and it could have inside it schema A or schema B or nil or or even three of them at the same time. Something like (s/defschema schema-name {:name s/Str :space s/if [[A B nil]] [[A nil]] [[B nil]] [[nil]]})

Daouda 2018-11-28T12:40:59.001400Z

can anyone help me please?