Skip to content

Commit 3002562

Browse files
committed
feat: add comments to DTO
1 parent 737173c commit 3002562

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

api/src/dtos/multiselect-questions/multiselect-option.dto.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,19 @@ import { ValidationMethod } from '../../enums/multiselect-questions/validation-m
1414
import { ValidationsGroupsEnum } from '../../enums/shared/validation-groups-enum';
1515

1616
export class MultiselectOption extends AbstractDTO {
17+
// TODO: This will be sunseted after MSQ refactor
1718
@Expose()
1819
@IsBoolean({ groups: [ValidationsGroupsEnum.default] })
1920
@ApiPropertyOptional()
2021
collectAddress?: boolean;
2122

23+
// TODO: This will be sunseted after MSQ refactor
2224
@Expose()
2325
@IsBoolean({ groups: [ValidationsGroupsEnum.default] })
2426
@ApiPropertyOptional()
2527
collectName?: boolean;
2628

29+
// TODO: This will be sunseted after MSQ refactor
2730
@Expose()
2831
@IsBoolean({ groups: [ValidationsGroupsEnum.default] })
2932
@ApiPropertyOptional()

api/src/dtos/multiselect-questions/multiselect-question.dto.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ class MultiselectQuestion extends AbstractDTO {
5454
@ApiPropertyOptional({ type: IdDTO })
5555
jurisdiction?: IdDTO;
5656

57+
// TODO: This will be sunseted after MSQ refactor but still required at the moment
5758
@Expose()
5859
@IsDefined({ groups: [ValidationsGroupsEnum.default] })
5960
@Type(() => IdDTO)
@@ -89,6 +90,7 @@ class MultiselectQuestion extends AbstractDTO {
8990
@ApiPropertyOptional({ type: MultiselectOption, isArray: true })
9091
options?: MultiselectOption[];
9192

93+
// TODO: This will be sunseted after MSQ refactor
9294
@Expose()
9395
@IsString({ groups: [ValidationsGroupsEnum.default] })
9496
@ApiPropertyOptional()
@@ -111,6 +113,7 @@ class MultiselectQuestion extends AbstractDTO {
111113
@ApiPropertyOptional()
112114
subText?: string;
113115

116+
// TODO: This will be sunseted after MSQ refactor but still required at the moment
114117
@Expose()
115118
@IsDefined({ groups: [ValidationsGroupsEnum.default] })
116119
@IsString({ groups: [ValidationsGroupsEnum.default] })
@@ -122,6 +125,7 @@ class MultiselectQuestion extends AbstractDTO {
122125
@ApiPropertyOptional()
123126
untranslatedName?: string;
124127

128+
// TODO: This will be sunseted after MSQ refactor
125129
@Expose()
126130
@IsString({ groups: [ValidationsGroupsEnum.default] })
127131
@ApiPropertyOptional()

0 commit comments

Comments
 (0)