fix(api/private/me): require and document displayName

This renames the argument in the POST /profile route to `displayName`
to be more consistent with the UserDTO.

It also adds OpenAPI docs.

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2022-02-05 16:21:13 +01:00
parent d6ea4d29fe
commit 6944094b9b
2 changed files with 13 additions and 4 deletions

View file

@ -103,7 +103,7 @@ describe('Me', () => {
await agent
.post('/api/private/me/profile')
.send({
name: newDisplayName,
displayName: newDisplayName,
})
.expect(201);
const dbUser = await testSetup.userService.getUserByUsername('hardcoded');