Skip to content

Commit

Permalink
Minor code change to clarify logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDavisSolace committed Sep 2, 2021
1 parent c760f11 commit f98a07b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion to-json-schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
};
Expand Down

0 comments on commit f98a07b

Please sign in to comment.