DevBetterCom / DevBetterCom/DevBetterWeb

Updating a user to try to set their name and email and the address validation fires

Open
#1,422 0 comments 1 reaction 2 assignees Claimed by @ardalis View on GitHub
Dominant language
C#
Stars
157
Forks
59
Avg merge
3d 19h
Merged PRs (30d)
2

Description

There is no page level validation - this is the response:

{"InvalidUserId":["Bad Data"],"UserPersonalUpdateModel.Address":["The Address field is required."]}

/Admin/User?userId=1541...

## Expected Behavior

Address validation should only fire if one or more of the address fields are updated. Updating just the name or email fields should be supported. Validation on the client should also fire rather than an error occurring on the server. Validation on the server should also fire instead of there being an error.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.