Skip to content

Commit ff56d55

Browse files
committed
fix: optional
1 parent 2476a74 commit ff56d55

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

apps/api/src/app/events/dtos/trigger-event-request.dto.ts

+11-7
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export class StepsOverrides {
6666
}
6767

6868
export class TriggerOverrides {
69-
@ApiProperty({
69+
@ApiPropertyOptional({
7070
description: 'This could be used to override provider specific configurations',
7171
example: {
7272
'email-step': {
@@ -84,7 +84,7 @@ export class TriggerOverrides {
8484
})
8585
steps?: Record<string, StepsOverrides>;
8686

87-
@ApiProperty({
87+
@ApiPropertyOptional({
8888
description: 'Overrides the provider configuration for the entire workflow and all steps',
8989
example: {
9090
sendgrid: {
@@ -99,31 +99,35 @@ export class TriggerOverrides {
9999
})
100100
providers?: Record<ProvidersIdEnum, Record<string, unknown>>;
101101

102-
@ApiProperty({
102+
@ApiPropertyOptional({
103103
description: 'Override the email provider specific configurations for the entire workflow',
104104
deprecated: true,
105+
type: 'object',
105106
})
106107
email?: Record<string, unknown>;
107108

108-
@ApiProperty({
109+
@ApiPropertyOptional({
109110
description: 'Override the push provider specific configurations for the entire workflow',
110111
deprecated: true,
112+
type: 'object',
111113
})
112114
push?: Record<string, any>;
113115

114-
@ApiProperty({
116+
@ApiPropertyOptional({
115117
description: 'Override the sms provider specific configurations for the entire workflow',
116118
deprecated: true,
119+
type: 'object',
117120
})
118121
sms?: Record<string, any>;
119122

120-
@ApiProperty({
123+
@ApiPropertyOptional({
121124
description: 'Override the chat provider specific configurations for the entire workflow',
122125
deprecated: true,
126+
type: 'object',
123127
})
124128
chat?: Record<string, any>;
125129

126-
@ApiProperty({
130+
@ApiPropertyOptional({
127131
description: 'Override the layout identifier for the entire workflow',
128132
deprecated: true,
129133
})

0 commit comments

Comments
 (0)