From 565a58e25f1e748bbaf06441cd1e580a88717b86 Mon Sep 17 00:00:00 2001 From: Liench Volodymyr Date: Mon, 28 Nov 2022 18:36:49 +0200 Subject: [PATCH] HCK-2683: parse yaml values as plain json --- reverse_engineering/helpers/commonHelper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reverse_engineering/helpers/commonHelper.js b/reverse_engineering/helpers/commonHelper.js index 960c70b..8b18b20 100644 --- a/reverse_engineering/helpers/commonHelper.js +++ b/reverse_engineering/helpers/commonHelper.js @@ -66,7 +66,7 @@ const handleErrorObject = (error, title) => { }; const convertYamlToJson = (fileData) => { - return yaml.load(fileData); + return yaml.load(fileData, { schema: yaml.JSON_SCHEMA }); }; const getNewId = () => uuid.v1();