Fork me on GitHub
#schema
<
2020-12-04
>
C-Squirrel13:12:30

Hi. Hoping someone can help with this very newbie question.... Given this simple schema, how would I indicate either foo or bar must be provided? (one or the other must be there, but not both)

[{
:id s/Int
:name s/Str
:foo s/Str
:bar s/Int
}]

mynomoto21:12:32

I would declare two separate schemas and use s/conditional with the conditions :foo and :bar.