mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-01-11 02:43:52 +00:00
UserInfoDto: Add doc comments
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
a144a55eb4
commit
d3acd3d2db
1 changed files with 26 additions and 0 deletions
|
@ -4,15 +4,41 @@
|
|||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import { ApiProperty } from '@nestjs/swagger';
|
||||
import { IsString } from 'class-validator';
|
||||
|
||||
export class UserInfoDto {
|
||||
/**
|
||||
* The username
|
||||
* @example "john.smith"
|
||||
*/
|
||||
@IsString()
|
||||
userName: string;
|
||||
|
||||
/**
|
||||
* The display name
|
||||
* @example "John Smith"
|
||||
*/
|
||||
@IsString()
|
||||
displayName: string;
|
||||
|
||||
/**
|
||||
* URL of the profile picture
|
||||
* @example "https://hedgedoc.example.com/uploads/johnsmith.png"
|
||||
*/
|
||||
@ApiProperty({
|
||||
format: 'uri',
|
||||
})
|
||||
@IsString()
|
||||
photo: string;
|
||||
|
||||
/**
|
||||
* Email address of the user
|
||||
* @example "john.smith@example.com"
|
||||
*/
|
||||
@ApiProperty({
|
||||
format: 'email',
|
||||
})
|
||||
@IsString()
|
||||
email: string;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue