mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-22 17:56: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';
|
import { NoteMetadataDto } from './note-metadata.dto';
|
||||||
|
|
||||||
export class NoteDto {
|
export class NoteDto {
|
||||||
|
/**
|
||||||
|
* Markdown content of the note
|
||||||
|
* @example "# I am a heading"
|
||||||
|
*/
|
||||||
@IsString()
|
@IsString()
|
||||||
content: string;
|
content: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Metadata of the note
|
||||||
|
*/
|
||||||
@ValidateNested()
|
@ValidateNested()
|
||||||
metadata: NoteMetadataDto;
|
metadata: NoteMetadataDto;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Authorship information of this note
|
||||||
|
*/
|
||||||
@IsArray()
|
@IsArray()
|
||||||
@ValidateNested({ each: true })
|
@ValidateNested({ each: true })
|
||||||
editedByAtPosition: NoteAuthorshipDto[];
|
editedByAtPosition: NoteAuthorshipDto[];
|
||||||
|
|
Loading…
Reference in a new issue