I have a case where I need to check the content of one field, based on a partial match (contains) of the content of another field, for validations.
In more specific....if field A contains the string "option 3", and its actually part of a much longer string "Routing Option 3, with user defined....." etc etc and so on... then I need to check field B to make certain that it contains "more than 1 entry in an array". If the first check fails, then I need to check and make sure it contains "Exactly 1 entry, and that entry needs to be an empty string"
Here are the requirements in pseudocode
If (property A contains "Option 3" [case invariant])
Validate property B.Length >= 2
else
Validate property B === [""]
Is this complexity of comparison even possible using raw jsonSchema?