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
}]
I would declare two separate schemas and use s/conditional
with the conditions :foo
and :bar
.