Skip to content

Commit 857748b

Browse files
committed
Remove 422 response code for batched notifications and consolidate with 200
Ticket: ANFEPA-3688 Changelog: removed
1 parent d8e394e commit 857748b

File tree

1 file changed

+29
-42
lines changed

1 file changed

+29
-42
lines changed

docs_sources/push_gateway_openapi.yaml

Lines changed: 29 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,21 @@ paths:
248248
successful: 1
249249
failed: 0
250250
partial: 1
251+
partialFailure:
252+
value:
253+
results:
254+
- id: "batch_item_1"
255+
status: "success"
256+
rejected: []
257+
- id: "batch_item_2"
258+
status: "failed"
259+
error: "Invalid notification format"
260+
summary:
261+
total: 2
262+
successful: 1
263+
failed: 1
264+
partial: 0
265+
251266
'400':
252267
description: Invalid batch request
253268
content:
@@ -300,27 +315,6 @@ paths:
300315
error:
301316
type: string
302317
example: "Batch request payload is too large."
303-
'422':
304-
description: Batch partially processed - some notifications failed validation
305-
content:
306-
application/json:
307-
schema:
308-
$ref: '#/components/schemas/BatchNotificationResponse'
309-
examples:
310-
partialFailure:
311-
value:
312-
results:
313-
- id: "batch_item_1"
314-
status: "success"
315-
rejected: []
316-
- id: "batch_item_2"
317-
status: "failed"
318-
error: "Invalid notification format"
319-
summary:
320-
total: 2
321-
successful: 1
322-
failed: 1
323-
partial: 0
324318
'500':
325319
description: A generic error occurred on the Push Gateway.
326320
content:
@@ -419,6 +413,20 @@ paths:
419413
successful: 1
420414
failed: 0
421415
partial: 1
416+
partialFailure:
417+
value:
418+
results:
419+
- id: "enc_batch_1"
420+
status: "success"
421+
rejected: []
422+
- id: "enc_batch_2"
423+
status: "failed"
424+
error: "Invalid notification format"
425+
summary:
426+
total: 2
427+
successful: 1
428+
failed: 1
429+
partial: 0
422430
'400':
423431
description: Invalid batch request
424432
content:
@@ -471,27 +479,6 @@ paths:
471479
error:
472480
type: string
473481
example: "Batch request payload is too large."
474-
'422':
475-
description: Batch partially processed - some notifications failed validation
476-
content:
477-
application/json:
478-
schema:
479-
$ref: '#/components/schemas/BatchNotificationResponse'
480-
examples:
481-
partialFailure:
482-
value:
483-
results:
484-
- id: "enc_batch_1"
485-
status: "success"
486-
rejected: []
487-
- id: "enc_batch_2"
488-
status: "failed"
489-
error: "Invalid notification format"
490-
summary:
491-
total: 2
492-
successful: 1
493-
failed: 1
494-
partial: 0
495482
'500':
496483
description: A generic error occurred on the Push Gateway.
497484
content:

0 commit comments

Comments
 (0)