@@ -70,4 +70,11 @@ export class SyncDto {
|
||||
@ValidateNested({ each: true })
|
||||
@Type(() => OpenTabDto)
|
||||
openTabs: OpenTabDto[];
|
||||
|
||||
// Validated one by one in the service: a bad event is rejected on its own instead of failing the sync
|
||||
@ApiPropertyOptional({ description: 'TabEventDto[]: what happened on tabs since the last acknowledged sync' })
|
||||
@IsOptional()
|
||||
@IsArray()
|
||||
@ArrayMaxSize(1000)
|
||||
events?: unknown[];
|
||||
}
|
||||
Reference in New Issue
Block a user