diff --git a/src/notes/note.media-deletion.dto.ts b/src/notes/note.media-deletion.dto.ts new file mode 100644 index 000000000..0779fdbce --- /dev/null +++ b/src/notes/note.media-deletion.dto.ts @@ -0,0 +1,18 @@ +/* + * SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ +import { IsBoolean } from 'class-validator'; +import { ApiProperty } from '@nestjs/swagger'; + +export class NoteMediaDeletionDto { + /** + * Should the associated mediaUploads be keept + * @default false + * @example false + */ + @IsBoolean() + @ApiProperty() + keepMedia: boolean; +}