From 3ed883755973ec44bba529cd72dcc08b3fdacaa4 Mon Sep 17 00:00:00 2001 From: Daniel Dimitrov Date: Fri, 15 Nov 2024 16:07:58 +0100 Subject: [PATCH] fix: swagger output concrete DateLabel type --- src/routes/common/entities/date-label.entity.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/common/entities/date-label.entity.ts b/src/routes/common/entities/date-label.entity.ts index fbfb5d065d..8d86478181 100644 --- a/src/routes/common/entities/date-label.entity.ts +++ b/src/routes/common/entities/date-label.entity.ts @@ -1,7 +1,7 @@ import { ApiProperty } from '@nestjs/swagger'; export class DateLabel { - @ApiProperty() + @ApiProperty({ enum: ['DATE_LABEL'] }) type: string; @ApiProperty() timestamp: number;