diff --git a/docker-compose.yml b/docker-compose.yml index af468921a..d0e9769ac 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -274,6 +274,28 @@ services: networks: - backend - frontend + + minio: + image: minio/minio + ports: + - "9000:9000" + - "9001:9001" + volumes: + - minio_storage:/data + environment: + MINIO_ROOT_USER: myaccesskey13 + MINIO_ROOT_PASSWORD: mysecretkey12 + command: server --console-address ":9001" /data + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"] + interval: 30s + timeout: 20s + retries: 3 + networks: + - backend + +volumes: + minio_storage: networks: frontend: diff --git a/packages/api/src/@core/@core-services/webhooks/panora-webhooks/dto/webhook.dto.ts b/packages/api/src/@core/@core-services/webhooks/panora-webhooks/dto/webhook.dto.ts index ae291c424..e1f515416 100644 --- a/packages/api/src/@core/@core-services/webhooks/panora-webhooks/dto/webhook.dto.ts +++ b/packages/api/src/@core/@core-services/webhooks/panora-webhooks/dto/webhook.dto.ts @@ -32,11 +32,12 @@ export class EventPayload { export class SignatureVerificationDto { @ApiProperty({ - type: EventPayload, + type: Object, + additionalProperties: true, nullable: true, description: 'The payload event of the webhook.', }) - payload: EventPayload; + payload: { [key: string]: any }; @ApiProperty({ type: String, diff --git a/packages/api/src/@core/@core-services/webhooks/panora-webhooks/webhook.controller.ts b/packages/api/src/@core/@core-services/webhooks/panora-webhooks/webhook.controller.ts index 80eb3beba..8a974bd5b 100644 --- a/packages/api/src/@core/@core-services/webhooks/panora-webhooks/webhook.controller.ts +++ b/packages/api/src/@core/@core-services/webhooks/panora-webhooks/webhook.controller.ts @@ -172,7 +172,7 @@ export class WebhookController { summary: 'Verify payload signature of the webhook', }) @ApiBody({ type: SignatureVerificationDto }) - @ApiPostCustomResponse(EventPayload) + @ApiPostGenericJson('Dynamic event payload') @UseGuards(ApiKeyAuthGuard) @Post('verifyEvent') async verifyPayloadSignature(@Body() data: SignatureVerificationDto) { diff --git a/packages/api/swagger/swagger-spec.yaml b/packages/api/swagger/swagger-spec.yaml index 6b2952df5..5b36d95dd 100644 --- a/packages/api/swagger/swagger-spec.yaml +++ b/packages/api/swagger/swagger-spec.yaml @@ -309,7 +309,9 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/EventPayload' + type: object + additionalProperties: true + description: Dynamic event payload tags: *ref_1 x-speakeasy-group: webhooks /ticketing/tickets: @@ -9994,17 +9996,14 @@ components: required: - url - scope - EventPayload: - type: object - properties: {} SignatureVerificationDto: type: object properties: payload: + type: object + additionalProperties: true nullable: true description: The payload event of the webhook. - allOf: - - $ref: '#/components/schemas/EventPayload' signature: type: string nullable: true