From 4dc77a66f4f55ea85cfa952a32b8a523cecca2f4 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Tue, 1 Oct 2024 13:26:23 -0400 Subject: [PATCH] Add proper response schema for 202 responses --- docs/manuals/swagger.json | 69 ++++++++++++++++++++------------------- 1 file changed, 35 insertions(+), 34 deletions(-) diff --git a/docs/manuals/swagger.json b/docs/manuals/swagger.json index c201c9a..3863227 100644 --- a/docs/manuals/swagger.json +++ b/docs/manuals/swagger.json @@ -10,6 +10,24 @@ }, "type": "object" }, + "CeleryTask": { + "description": "The Celery job information of the task", + "properties": { + "run_on": { + "description": "The worker daemon instance assigned to run the task", + "type": "string" + }, + "task_id": { + "description": "The internal Celery job ID of the task", + "type": "string" + }, + "task_name": { + "description": "The internal Celery job task name", + "type": "string" + } + }, + "type": "object" + }, "Cluster Data": { "type": "object" }, @@ -3154,8 +3172,7 @@ "202": { "description": "Accepted", "schema": { - "description": "The Celery job ID of the task", - "type": "string" + "$ref": "#/definitions/CeleryTask" } }, "400": { @@ -5308,8 +5325,7 @@ "202": { "description": "Accepted", "schema": { - "description": "The Celery job ID of the task", - "type": "string" + "$ref": "#/definitions/CeleryTask" } }, "400": { @@ -5446,8 +5462,7 @@ "202": { "description": "Accepted", "schema": { - "description": "The Celery job ID of the task", - "type": "string" + "$ref": "#/definitions/CeleryTask" } }, "400": { @@ -5486,8 +5501,7 @@ "202": { "description": "Accepted", "schema": { - "description": "The Celery job ID of the task", - "type": "string" + "$ref": "#/definitions/CeleryTask" } }, "400": { @@ -5566,8 +5580,7 @@ "202": { "description": "Accepted", "schema": { - "description": "The Celery job ID of the task", - "type": "string" + "$ref": "#/definitions/CeleryTask" } }, "400": { @@ -5597,8 +5610,7 @@ "202": { "description": "Accepted", "schema": { - "description": "The Celery job ID of the task", - "type": "string" + "$ref": "#/definitions/CeleryTask" } }, "400": { @@ -5684,8 +5696,7 @@ "202": { "description": "Accepted", "schema": { - "description": "The Celery job ID of the task", - "type": "string" + "$ref": "#/definitions/CeleryTask" } }, "400": { @@ -6873,8 +6884,7 @@ "202": { "description": "Accepted", "schema": { - "description": "The Celery job ID of the task", - "type": "string" + "$ref": "#/definitions/CeleryTask" } }, "400": { @@ -7237,8 +7247,7 @@ "202": { "description": "Accepted", "schema": { - "description": "The Celery job ID of the task", - "type": "string" + "$ref": "#/definitions/CeleryTask" } }, "400": { @@ -7268,8 +7277,7 @@ "202": { "description": "Accepted", "schema": { - "description": "The Celery job ID of the task", - "type": "string" + "$ref": "#/definitions/CeleryTask" } }, "400": { @@ -7292,8 +7300,7 @@ "202": { "description": "Accepted", "schema": { - "description": "The Celery job ID of the task", - "type": "string" + "$ref": "#/definitions/CeleryTask" } } }, @@ -7595,8 +7602,7 @@ "202": { "description": "Accepted", "schema": { - "description": "The Celery job ID of the task", - "type": "string" + "$ref": "#/definitions/CeleryTask" } }, "400": { @@ -7632,8 +7638,7 @@ "202": { "description": "Accepted", "schema": { - "description": "The Celery job ID of the task", - "type": "string" + "$ref": "#/definitions/CeleryTask" } }, "400": { @@ -7685,8 +7690,7 @@ "202": { "description": "Accepted", "schema": { - "description": "The Celery job ID of the task", - "type": "string" + "$ref": "#/definitions/CeleryTask" } }, "400": { @@ -7739,8 +7743,7 @@ "202": { "description": "Accepted", "schema": { - "description": "The Celery job ID of the task", - "type": "string" + "$ref": "#/definitions/CeleryTask" } }, "400": { @@ -8010,8 +8013,7 @@ "202": { "description": "Accepted", "schema": { - "description": "The Celery job ID of the task", - "type": "string" + "$ref": "#/definitions/CeleryTask" } }, "400": { @@ -8086,8 +8088,7 @@ "202": { "description": "Accepted", "schema": { - "description": "The Celery job ID of the task", - "type": "string" + "$ref": "#/definitions/CeleryTask" } }, "400": {