variable_object
Describes validation rules for a field that can contain different kinds of objects. The value of the selector field (product_type in the example) chooses the set of rules.
Error codes: the errors of the nested rules, or FORMAT_ERROR if the value is not an object, or the selector field is missing or has an unknown value.
rules
input
Invaliderrors
{
"product": {
"name": "TOO_LONG"
}
}