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
Since the property name is required (not require) it makes more sense if the property name and API uses the same convention for requiredIf and requiredIfNot.
The text was updated successfully, but these errors were encountered:
Idea here: instead of creating a breaking change, and because the naming could be easily mismatched, add alias methods for requireIf and requireIfNot and then have them spit a warning message to the console requireIf should be requiredIf (and appropriate ...IfNot message) but allow them to still work.
May actually be a good idea to add this to the base require method as well just to ensure API consistency is more obvious to devs.
Since the property name is
required
(notrequire
) it makes more sense if the property name and API uses the same convention forrequiredIf
andrequiredIfNot
.The text was updated successfully, but these errors were encountered: