fix: correct webhook triggers OpenAPI type from string to array (#28288)
* fix(api): correct webhook triggers OpenAPI type from string to array * chore: update .github/oasdiff-err-ignore.txt to allow schema change
This commit is contained in:
1 parent
e2add3f2c9
commit
658e65be4d
4 files changed
+654
-80
No files matched your search
@@ -29,6 +29,8 @@ export class CreateWebhookInputDto {
|
||||
|
||||
@IsArray()
|
||||
@ApiProperty({
|
||||
isArray: true,
|
||||
enum: WebhookTriggerEvents,
|
||||
example: [
|
||||
"BOOKING_CREATED",
|
||||
"BOOKING_RESCHEDULED",
|
||||
@@ -39,7 +41,6 @@ export class CreateWebhookInputDto {
|
||||
"BOOKING_NO_SHOW",
|
||||
"BOOKING_REOPENED",
|
||||
],
|
||||
enum: WebhookTriggerEvents,
|
||||
})
|
||||
@IsEnum(WebhookTriggerEvents, { each: true })
|
||||
triggers!: WebhookTriggerEvents[];
|
||||
|
||||
@@ -28,6 +28,7 @@ export class WebhookOutputDto {
|
||||
@IsArray()
|
||||
@IsEnum(WebhookTriggerEvents, { each: true })
|
||||
@Expose()
|
||||
@ApiProperty({ isArray: true, enum: WebhookTriggerEvents })
|
||||
readonly triggers!: WebhookTriggerEvents[];
|
||||
|
||||
@IsString()
|
||||
|
||||
Reference in new issue
Block a user