mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-29 12:54:20 -05:00
16 lines
382 B
TypeScript
16 lines
382 B
TypeScript
|
import { IsArray, IsString, ValidateNested } from 'class-validator';
|
||
|
import { NoteAuthorshipDto } from './note-authorship.dto';
|
||
|
import { NoteMetadataDto } from './note-metadata.dto';
|
||
|
|
||
|
export class NoteDto {
|
||
|
@IsString()
|
||
|
content: string;
|
||
|
|
||
|
@ValidateNested()
|
||
|
metdata: NoteMetadataDto;
|
||
|
|
||
|
@IsArray()
|
||
|
@ValidateNested({ each: true })
|
||
|
editedByAtPosition: NoteAuthorshipDto[];
|
||
|
}
|