Skip to content

Commit

Permalink
Merge pull request #88 from mtseluiko/HCK-2823--hackolade-assignment-…
Browse files Browse the repository at this point in the history
…model-definition-doc

Hck 2823  hackolade assignment model definition doc
  • Loading branch information
Vitalii4as authored Jan 4, 2023
2 parents 574dd8c + c1e2eee commit e19a058
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion forward_engineering/helpers/convertJsonSchemaToAvro.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const prepareSchema = schema => ({
});

const convertDescriptionToDoc = schema => {
const description = schema.refDescription || schema.description;
const description = (schema.$ref && schema.refDescription) || schema.description;
if (!description) {
return schema;
}
Expand Down
4 changes: 2 additions & 2 deletions forward_engineering/helpers/udtHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ const resolveSchemaUdt = schema => {

const typeFromUdt = getTypeFromUdt(type);
if (_.isArray(_.get(typeFromUdt, 'type'))) {
return { ...schema, ...typeFromUdt, name: schema.name };
return { ...schema, ...typeFromUdt, name: schema.name, doc: schema.doc };
}

return { ...schema, ...prepareTypeFromUDT(typeFromUdt), name: schema.name };
return { ...schema, ...prepareTypeFromUDT(typeFromUdt), name: schema.name, doc: schema.doc };
};

const isNativeType = type => {
Expand Down

0 comments on commit e19a058

Please sign in to comment.