Skip to content

Commit

Permalink
Merge commit 'refs/pull/19/head' of https://github.com/hackolade/Avro
Browse files Browse the repository at this point in the history
Handling references in array items
  • Loading branch information
pdesmarets committed Jan 29, 2021
2 parents 9f4bffe + 57406cf commit 6709cbd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 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
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Avro",
"version": "0.1.54",
"versionDate": "2021-01-20",
"version": "0.1.55",
"versionDate": "2021-01-29",
"author": "hackolade",
"engines": {
"hackolade": "3.3.2",
Expand Down

0 comments on commit 6709cbd

Please sign in to comment.