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
When nesting validation sets, functions supplied as :pre get the entire data structure passed to b/validate, not just the nested structure that they would normally get. This basically breaks their functionality.
In this example, :eu-vat-number validation will work if a billing-data map is being validated, but will not work as expected if signup-data is validated. The :pre function will get the entire signup-data map, which does not contain a :country key, therefore the :eu-vat-number validation will never run.
The text was updated successfully, but these errors were encountered:
When nesting validation sets, functions supplied as
:pre
get the entire data structure passed tob/validate
, not just the nested structure that they would normally get. This basically breaks their functionality.Here's a more descriptive example:
In this example,
:eu-vat-number
validation will work if abilling-data
map is being validated, but will not work as expected ifsignup-data
is validated. The:pre
function will get the entiresignup-data
map, which does not contain a:country
key, therefore the:eu-vat-number
validation will never run.The text was updated successfully, but these errors were encountered: