mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-10-19 22:00:15 -04:00
0c56466dc1
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
21 lines
511 B
TypeScript
21 lines
511 B
TypeScript
/*
|
|
* SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
|
|
*
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
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[];
|
|
}
|