Skip to content

Commit 3ec5973

Browse files
committed
fixed iteration over additional properties
1 parent c6349f9 commit 3ec5973

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/beautifier.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const beautifySchema = (schema) => {
5959
if (!schema.example) schema.generatedExample = generateExample(schema);
6060

6161
_.each(schema.properties, beautifySchema);
62-
_.each(schema.additionalProperties, beautifySchema);
62+
if (schema.additionalProperties) _.each(schema.additionalProperties.properties, beautifySchema);
6363
if (schema.items) beautifySchema(schema.items);
6464

6565
return schema;

0 commit comments

Comments
 (0)