Skip to content

Commit bff557f

Browse files
fix: arrays of non-object types were not getting rendered properly. (#112)
Co-authored-by: Michael Davis <[email protected]>
1 parent 9160374 commit bff557f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

filters/all.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -262,13 +262,12 @@ function fixType([name, javaName, property]) {
262262
throw new Error(`Array named ${ name } must have an 'items' property to indicate what type the array elements are.`);
263263
}
264264
let itemsType = property.items().type();
265-
266265
if (itemsType) {
267266
if (itemsType === 'object') {
268267
isArrayOfObjects = true;
269268
itemsType = _.upperFirst(javaName);
270269
} else {
271-
itemsType = typeMap.get(itemsType);
270+
itemsType = getType(itemsType, format).javaType;
272271
}
273272
}
274273
if (!itemsType) {

0 commit comments

Comments
 (0)