From 7d5deb0784c9ee2596ee78bd696dbf1c55d4a92e Mon Sep 17 00:00:00 2001 From: Piotr Bednarz Date: Wed, 11 Mar 2026 11:13:24 +0100 Subject: [PATCH] Fix unnecessary array in Stats API response --- specs/email-sending.openapi.yml | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/specs/email-sending.openapi.yml b/specs/email-sending.openapi.yml index 0071528..83c216f 100644 --- a/specs/email-sending.openapi.yml +++ b/specs/email-sending.openapi.yml @@ -1039,9 +1039,7 @@ paths: format: int64 example: 3938 stats: - type: array - items: - $ref: '#/components/schemas/SendingStats' + $ref: '#/components/schemas/SendingStats' '400': $ref: '#/components/responses/BAD_REQUEST' '401': @@ -1085,9 +1083,7 @@ paths: type: string example: Welcome Email stats: - type: array - items: - $ref: '#/components/schemas/SendingStats' + $ref: '#/components/schemas/SendingStats' '400': $ref: '#/components/responses/BAD_REQUEST' '401': @@ -1131,9 +1127,7 @@ paths: type: string example: Google stats: - type: array - items: - $ref: '#/components/schemas/SendingStats' + $ref: '#/components/schemas/SendingStats' '400': $ref: '#/components/responses/BAD_REQUEST' '401': @@ -1178,9 +1172,7 @@ paths: format: date example: '2025-01-01' stats: - type: array - items: - $ref: '#/components/schemas/SendingStats' + $ref: '#/components/schemas/SendingStats' '400': $ref: '#/components/responses/BAD_REQUEST' '401':