diff --git a/forward_engineering/api.js b/forward_engineering/api.js index 450d468..c6ba6cd 100644 --- a/forward_engineering/api.js +++ b/forward_engineering/api.js @@ -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; diff --git a/package.json b/package.json index bce52b6..46088d3 100644 --- a/package.json +++ b/package.json @@ -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",