We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Copy as JSON
1 parent 0d4ce97 commit 4041196Copy full SHA for 4041196
code.bundle
public/js/func.js
@@ -1016,6 +1016,8 @@ FUNC.makejsonfromschema = function(val) {
1016
1017
var model = [];
1018
var lines = val.split('\n');
1019
+ var lastindex = lines.length - 1;
1020
+
1021
for (var i = 0; i < lines.length; i++) {
1022
var line = lines[i].trim();
1023
var beg = line.indexOf('\'');
@@ -1048,6 +1050,9 @@ FUNC.makejsonfromschema = function(val) {
1048
1050
if (val.charAt(val.length - 1) === '\'')
1049
1051
val = val.substring(0, val.length - 1);
1052
1053
+ if (model[model.length - 1])
1054
+ model[model.length - 1] += ',';
1055
1056
model.push('\t"' + key + '": ' + val.replace(/'/g, '"'));
1057
}
1058
0 commit comments