Skip to content

list_of_different_objects ​

Describes validation rules for a list of different objects. For every element, the value of the selector field chooses the set of rules, like in variable_object.

Error codes: a list with the errors of every object, or FORMAT_ERROR if the value is not a list, an element is not an object, or its selector field is missing or has an unknown value.

Live example · edit rules or inputOpen in playground
rules
input
Invaliderrors
{
  "products": [
    null,
    {
      "name": "TOO_LONG"
    }
  ]
}