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 validstate combines reducers together into unified state to run validations. This will cause a collision if properties are named the name across multiple reducers such as:
auth.email and contact.email
To resolve validstate_config should respect reducer namespaces and property keys should allow dot notation for access. IE
After talking through the implementation of this we have decided that it would be best to keep the interface consistent so the API will use _ values for reducer in the properties instead of dot notation like so:
account: {
_reducer: 'auth',
'name': { required: true },
'email': { email: true },
'password': { minLength: 8 },
'paymentMethod: { required: true, _reducer: 'payments' }
}
Where the property `_reducer` setting will override the overall validation setting.
If a validation and property both are missing the `_reducer` key than a `ConfigurationError` should be thrown.
Currently validstate combines reducers together into unified state to run validations. This will cause a collision if properties are named the name across multiple reducers such as:
auth.email
andcontact.email
To resolve
validstate_config
should respect reducer namespaces and property keys should allow dot notation for access. IEwhere
auth
is the key of the reducer inside of thecombineReducers
method.The text was updated successfully, but these errors were encountered: