You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, AtLeastOneOfValidator only provides the minimal attribute name on a validation error. This is different from other validators where we use the full name. As an example, let's consider the following parameters:
If address[needed_attr] isn't set, the hash key for that attribute's errors is address[needed_attr]. On the other hand, the hash key for errors on address[attr1] and address[attr2] is ['attr1', 'attr2']. This is inconsistent. Is this expected behavior? If not, I'd be willing to submit a pull request to fix it.
The text was updated successfully, but these errors were encountered:
Currently, AtLeastOneOfValidator only provides the minimal attribute name on a validation error. This is different from other validators where we use the full name. As an example, let's consider the following parameters:
If
address[needed_attr]
isn't set, the hash key for that attribute's errors isaddress[needed_attr]
. On the other hand, the hash key for errors onaddress[attr1]
andaddress[attr2]
is['attr1', 'attr2']
. This is inconsistent. Is this expected behavior? If not, I'd be willing to submit a pull request to fix it.The text was updated successfully, but these errors were encountered: