Skip to content

Commit 6aa80b5

Browse files
committed
Fixed #115 - Added support for additional properties in the model
1 parent 3308d5b commit 6aa80b5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/utils/common-utils.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,9 @@ export function schemaInObjectNotation(schema, obj, level = 0, suffix = '') {
341341
obj[key] = schemaInObjectNotation(schema.properties[key], {}, (level + 1));
342342
}
343343
}
344+
if (schema.additionalProperties) {
345+
obj['<any-key>'] = schemaInObjectNotation(schema.additionalProperties, {});
346+
}
344347
} else if (schema.items) { // If Array
345348
obj['::description'] = schema.description ? schema.description : '';
346349
obj['::type'] = 'array';

0 commit comments

Comments
 (0)