aboutsummaryrefslogtreecommitdiffstats
path: root/cps-rest/docs/openapi/components.yml
diff options
context:
space:
mode:
authorArpit Singh <as00745003@techmahindra.com>2024-07-17 10:24:44 +0530
committerPriyank Maheshwari <priyank.maheshwari@est.tech>2024-07-24 09:28:21 +0000
commit44bca362f17223661abe4fddb6003b097db78879 (patch)
treef86e6001998a7558649552c9d451d5adbd2fc209 /cps-rest/docs/openapi/components.yml
parent5cba1b8333b4b2f2d97160f0ee210dde9f25aee1 (diff)
Fix "Create a node" and "Add List Elements" APIs response code
Create a node and Add list elements APIs would return a 500 response code when a JSON payload mismatching the Schema was sent as part of the request body. Updated the code to return response code 400. Issue-ID: CPS-2319 Change-Id: I86d6af446966790d9e45045b330f0c411fcd0f1d Signed-off-by: Arpit Singh <as00745003@techmahindra.com>
Diffstat (limited to 'cps-rest/docs/openapi/components.yml')
-rw-r--r--cps-rest/docs/openapi/components.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/cps-rest/docs/openapi/components.yml b/cps-rest/docs/openapi/components.yml
index 99502e3083..a2587eb56d 100644
--- a/cps-rest/docs/openapi/components.yml
+++ b/cps-rest/docs/openapi/components.yml
@@ -376,7 +376,7 @@ components:
Created:
description: Created
content:
- text/plain:
+ application/json:
schema:
type: string
example: my-resource