-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Model Validation - custom business logic #4600
Comments
Hi @mastermunj; AFAIK models are meant to only provide data structure (as part of the LB4 redesign). However, a similar validation can be accomplished by adding custom repository methods or processing validation at the controller level (e.g. validate before calling repository CRUD functions). |
Seems like it! In that case, we can close this a a duplicate of #1872 and continue discussion there. |
Duplicate of #1872 |
Hi,
I need help with Model validations. Is there anything similar to LB3 Model.validateAsync?
E.g. When someone is trying to register with a mobile number, I want to check whether mobile is on the blocked list.
The text was updated successfully, but these errors were encountered: