Skip to content

Commit 80098a8

Browse files
authored
Merge pull request #28 from fiddlededee/master
fixed iteration over additional properties
2 parents c6349f9 + 3ec5973 commit 80098a8

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)