Have a question regarding how to indicate OR in JSON Documentation(Using Swagger).
I would prefer not to have comments , indicating but wanted to know what is the typical way of showing this?
Say I have the following : Method Type: PATCH
{
Object1:{...},
Object2:{...}
}
What is a good way to show the API Caller that one of these fields is required but entering both is optional? essentially XOR or OR