From 07acbb4ddd713f74406b156cbcac2507f96f3b08 Mon Sep 17 00:00:00 2001 From: Arpit Singh Date: Fri, 9 Aug 2024 12:23:49 +0530 Subject: Implementation of Data validation feature in Create a Node API Added support to validate JSON/XML data without the need of persisting it in the databse. - added "dryRunInQuery" flag as a new query parameter - added new method as part of CpsDataService layer to perform data validation - added new method in yang parser "validateData" to validate data without persisting it Issue-ID: CPS-2361 Change-Id: I43dd33cc6120576d0fac606d5c4b0168d107311d Signed-off-by: Arpit Singh --- cps-rest/docs/openapi/components.yml | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'cps-rest/docs/openapi/components.yml') diff --git a/cps-rest/docs/openapi/components.yml b/cps-rest/docs/openapi/components.yml index 25ef6a452a..40f0e170ff 100644 --- a/cps-rest/docs/openapi/components.yml +++ b/cps-rest/docs/openapi/components.yml @@ -320,6 +320,15 @@ components: schema: type: integer example: 10 + dryRunInQuery: + name: dry-run + in: query + description: Boolean flag to validate data, without persisting it. Default value is set to false. + required: false + schema: + type: boolean + default: false + example: false responses: NotFound: -- cgit 1.2.3-korg