refactoring schemaDocument

This commit is contained in:
Luis Fernando Molina committed 2020-12-18 10:21:50 +01:00
1 parent c71b8efd05
commit 50a2bfc6b9
40 files changed
+370 -370

No files matched your search

+2 -2
View File
@@ -931,8 +931,8 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE
for (let k = 0; k < fileList.length; k++) {
let name = fileList[k]
let fileContent = fs.readFileSync(filePath + '/' + folder + '/' + name)
let nodeDefinition = JSON.parse(fileContent)
schemaArray.push(nodeDefinition)
let schemaDocument = JSON.parse(fileContent)
schemaArray.push(schemaDocument)
}
let schema = JSON.stringify(schemaArray)
respondWithContent(schema, httpResponse)