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
note: here it was solved by adding additional "isLegal" function to the class.. but it can be part of the validation. otherwise every time you create an instance you would call both "validate()" and "isLegal()" which is wierd and error prone if you forget one of the two
The text was updated successfully, but these errors were encountered:
I suggest to add an option to add a custom business validation. for example, if field A is "abc" and bigger than B, then validation is failed
it would be very usefull when used in the domain layer, such as in @talyssonoc 's boilerplate
https://github.com/talyssonoc/node-api-boilerplate/blob/master/src/domain/user/User.js
note: here it was solved by adding additional "isLegal" function to the class.. but it can be part of the validation. otherwise every time you create an instance you would call both "validate()" and "isLegal()" which is wierd and error prone if you forget one of the two
The text was updated successfully, but these errors were encountered: