Skip to content
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

validation for specific attribute #61

Open
LiranBri opened this issue Oct 25, 2018 · 0 comments
Open

validation for specific attribute #61

LiranBri opened this issue Oct 25, 2018 · 0 comments

Comments

@LiranBri
Copy link

LiranBri commented Oct 25, 2018

Is there a way to validate the value of an attribute on the attribute level?

for example, suppose Person has a "name" attribute which should be at least 3 characters.
can I test whether a specific value is a valid value for "name"?

If not, how can we validate a partial update operation? sometimes the client-side would send a request to update just a specific field of an entity (update the name of a specific person record). without this, we would have to fetch the existing person record, modify it with the updated attribute, and then run validate.. redundant extra fetch from DB

thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant