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.
1 parent 6932828 commit a1fade3Copy full SHA for a1fade3
index.js
@@ -369,7 +369,7 @@ function buildInnerObject (context, location) {
369
code += 'let json = JSON_STR_BEGIN_OBJECT\n'
370
371
let addComma = ''
372
- const hasComma = !hasRequiredProperties && (propertiesKeys.length > 1 || (schema.patternProperties || schema.additionalProperties))
+ const hasComma = !hasRequiredProperties && (propertiesKeys.length > 1 || (schema.patternProperties || schema.additionalProperties !== false))
373
if (hasComma) {
374
code += 'let addComma = false\n'
375
addComma = '!addComma && (addComma = true) || (json += JSON_STR_COMMA)'
0 commit comments