From 02779f5f45752774956c6fedbffc479be3c0ec3b Mon Sep 17 00:00:00 2001 From: Vitalii Yarmus Date: Wed, 24 Nov 2021 17:46:52 +0200 Subject: [PATCH] FE: mute error message for unknown types --- forward_engineering/modules/avsc/lib/types.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/forward_engineering/modules/avsc/lib/types.js b/forward_engineering/modules/avsc/lib/types.js index 754a22f..9edb381 100644 --- a/forward_engineering/modules/avsc/lib/types.js +++ b/forward_engineering/modules/avsc/lib/types.js @@ -174,9 +174,9 @@ Type.forSchema = function (schema, opts) { // reference. return opts.registry[schema] = Type.forSchema({type: schema}, opts); } - Type.addError(new Error(f('undefined type name: %s', schema))); + // Type.addError(new Error(f('undefined type name: %s', schema))); - return ''; + return schema; } if (schema.logicalType && opts.logicalTypes && !LOGICAL_TYPE) {