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 c6349f9 commit 3ec5973Copy full SHA for 3ec5973
lib/beautifier.js
@@ -59,7 +59,7 @@ const beautifySchema = (schema) => {
59
if (!schema.example) schema.generatedExample = generateExample(schema);
60
61
_.each(schema.properties, beautifySchema);
62
- _.each(schema.additionalProperties, beautifySchema);
+ if (schema.additionalProperties) _.each(schema.additionalProperties.properties, beautifySchema);
63
if (schema.items) beautifySchema(schema.items);
64
65
return schema;
0 commit comments