chore(auth): drop dead UpdateProfileRequest; rename shared struct

The combined profile handler (self-edit PUT /api/auth/profile and
admin PUT /api/auth/profile/:id) binds one struct for both paths —
and it's the admin-named one. Its twin UpdateProfileRequest had zero
references left. Delete it and rename AdminUpdateUserRequest to
ProfileUpdateRequest so the name matches who actually binds it; the
comments describing field semantics now stand on their own instead of
pointing at the deleted twin. Wire format (json/form tags) unchanged;
docs schema registration follows the rename.
This commit is contained in:
John O'Keefe committed 2026-10-26 13:59:22 -04:00
1 parent 649f821850
commit bdb9132b85
2 files changed
+5 -16

No files matched your search

+1 -1
View File
@@ -705,7 +705,7 @@ var Schemas = map[string]Schema{
},
"PUT /api/auth/profile": {
// Shared with admin variant (PUT /auth/profile/:id).
Request: handlers.AdminUpdateUserRequest{},
Request: handlers.ProfileUpdateRequest{},
Response: json.RawMessage(`{"message": ""}`),
},
"DELETE /api/auth/profile": {