I've been thinking about validation of objects. If we have the following JCR:
{ "bar":string, ( "foo":integer | "baz":string ) }
should the following JSON be valid or not:
{ "bar":"thing", "foo":2, "baz": "thingy" }
My feeling is not because the author is saying they want one or the other.
What do others expect?