From 44bca362f17223661abe4fddb6003b097db78879 Mon Sep 17 00:00:00 2001 From: Arpit Singh Date: Wed, 17 Jul 2024 10:24:44 +0530 Subject: 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 --- cps-rest/docs/openapi/cpsData.yml | 1 - 1 file changed, 1 deletion(-) (limited to 'cps-rest/docs/openapi/cpsData.yml') diff --git a/cps-rest/docs/openapi/cpsData.yml b/cps-rest/docs/openapi/cpsData.yml index 80d07c806b..1e70ef60c8 100644 --- a/cps-rest/docs/openapi/cpsData.yml +++ b/cps-rest/docs/openapi/cpsData.yml @@ -112,7 +112,6 @@ nodesByDataspaceAndAnchor: examples: dataSample: $ref: 'components.yml#/components/examples/dataSampleXml' - responses: '201': $ref: 'components.yml#/components/responses/Created' -- cgit 1.2.3-korg