Skip to content

Commit

Permalink
FE: fix references in items if udt was not used before
Browse files Browse the repository at this point in the history
  • Loading branch information
mtseluiko committed Jan 26, 2021
1 parent aac8a84 commit 57406cf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions forward_engineering/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -972,6 +972,12 @@ const replaceUdt = (avroSchema, udt) => {
}
};
const extractArrayItem = (schema) => {
if (typeof schema.items === 'string') {
return {
...schema,
items: getTypeFromUdt(schema.items, udt),
};
}
const items = convertType(schema.items);
const previousType = _.get(schema, 'items.type', items.type);
const convertedType = items.type;
Expand Down

0 comments on commit 57406cf

Please sign in to comment.