mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-22 09:46:30 -05:00
NoteDto: Add doc comments
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
7688b7c21f
commit
6a21665c3e
1 changed files with 10 additions and 0 deletions
|
@ -9,12 +9,22 @@ import { NoteAuthorshipDto } from './note-authorship.dto';
|
|||
import { NoteMetadataDto } from './note-metadata.dto';
|
||||
|
||||
export class NoteDto {
|
||||
/**
|
||||
* Markdown content of the note
|
||||
* @example "# I am a heading"
|
||||
*/
|
||||
@IsString()
|
||||
content: string;
|
||||
|
||||
/**
|
||||
* Metadata of the note
|
||||
*/
|
||||
@ValidateNested()
|
||||
metadata: NoteMetadataDto;
|
||||
|
||||
/**
|
||||
* Authorship information of this note
|
||||
*/
|
||||
@IsArray()
|
||||
@ValidateNested({ each: true })
|
||||
editedByAtPosition: NoteAuthorshipDto[];
|
||||
|
|
Loading…
Reference in a new issue