schema

C-Squirrel 2020-12-04T13:45:30.002900Z

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
}]

2020-12-08T21:32:32.003400Z

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