Skip to content

Feat/update user - #105

Open
Vlad-Skrekoten wants to merge 3 commits into
mate-academy:mainfrom
Vlad-Skrekoten:feat/update-user
Open

Feat/update user#105
Vlad-Skrekoten wants to merge 3 commits into
mate-academy:mainfrom
Vlad-Skrekoten:feat/update-user

Conversation

@Vlad-Skrekoten

Copy link
Copy Markdown

No description provided.

Vlad-Skrekoten and others added 3 commits August 25, 2026 15:49
Reuses getUserById and mutates the record in place, returning undefined
when the id does not exist so callers decide how to report "not found".

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Full-replace semantics: name and email are both required as non-empty
strings and the email is shape-checked, so a partial body is a 400 rather
than a silent half-update. The body is validated before the store lookup
because a malformed request is a client error either way.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Write-up of the plan, the PUT-vs-PATCH and validation-ordering choices, the
known GET/PUT invalid-id inconsistency, the commit split, and what the
self-review caught.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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

Successfully merging this pull request may close these issues.

1 participant