From f98a07b85368cfee8204c2144e1bd33ca231ce8b Mon Sep 17 00:00:00 2001 From: Michael Davis Date: Thu, 2 Sep 2021 08:41:43 -0400 Subject: [PATCH] Minor code change to clarify logic. --- to-json-schema.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/to-json-schema.js b/to-json-schema.js index bc518be0..f3e35a88 100644 --- a/to-json-schema.js +++ b/to-json-schema.js @@ -26,7 +26,7 @@ const commonAttributesMapping = (avroDefinition, jsonSchema, isTopLevel) => { if (avroDefinition.default !== undefined) jsonSchema.default = avroDefinition.default; const fullyQualifiedName = getFullyQualifiedName(avroDefinition); - if (isTopLevel && fullyQualifiedName) { + if (isTopLevel && fullyQualifiedName !== undefined) { jsonSchema['x-parser-schema-id'] = fullyQualifiedName; } };