Skip to content

Commit

Permalink
fix: arrays of non-object types were not getting rendered properly. (#…
Browse files Browse the repository at this point in the history
…112)

Co-authored-by: Michael Davis <[email protected]>
  • Loading branch information
damaru-inc and MichaelDavisSolace authored Jun 7, 2021
1 parent 9160374 commit bff557f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions filters/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,13 +262,12 @@ function fixType([name, javaName, property]) {
throw new Error(`Array named ${ name } must have an 'items' property to indicate what type the array elements are.`);
}
let itemsType = property.items().type();

if (itemsType) {
if (itemsType === 'object') {
isArrayOfObjects = true;
itemsType = _.upperFirst(javaName);
} else {
itemsType = typeMap.get(itemsType);
itemsType = getType(itemsType, format).javaType;
}
}
if (!itemsType) {
Expand Down

0 comments on commit bff557f

Please sign in to comment.