mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-19 17:55:17 -04:00
15 lines
383 B
TypeScript
15 lines
383 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()
|
|
metadata: NoteMetadataDto;
|
|
|
|
@IsArray()
|
|
@ValidateNested({ each: true })
|
|
editedByAtPosition: NoteAuthorshipDto[];
|
|
}
|