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
The attributes argument is an object with the map instance properties when mapInstance.validate() is called, but when mySpecialProperty is set, attributes no longer contains the map properties, so we can't rely on that
Is there a way to implement conditional validation like this currently? what am I missing?
The text was updated successfully, but these errors were encountered:
Let's say you want to conditionally validate the presence of a can/map property
I'd expect I could write something like
See ansman/validate.js#33
The problem with that is:
this
is null inside thepresence
functionattributes
argument is an object with the map instance properties whenmapInstance.validate()
is called, but whenmySpecialProperty
is set,attributes
no longer contains the map properties, so we can't rely on thatIs there a way to implement conditional validation like this currently? what am I missing?
The text was updated successfully, but these errors were encountered: