Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

Commit ef2f009

Browse files
vishwacsenaVishwac Sena Kannan
andauthored
Fix to remove validation. (#793)
Co-authored-by: Vishwac Sena Kannan <[email protected]>
1 parent 71aaf0d commit ef2f009

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

packages/lu/src/parser/lufile/parseFileContents.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1182,8 +1182,6 @@ const handleNDepthEntity = function(parsedContent, entityName, entityRoles, enti
11821182
let childEntityName = groupsFound.groups.entityName.replace(/^['"]/g, '').replace(/['"]$/g, '');
11831183
let childEntityType = groupsFound.groups.instanceOf.trim();
11841184
let childFeatures = groupsFound.groups.features ? groupsFound.groups.features.trim().split(/[,;]/g).map(item => item.trim()) : undefined;
1185-
// Verify that the entity name is unique
1186-
verifyUniqueEntityName(parsedContent, childEntityName, childEntityType, line, true);
11871185

11881186
// Get current tab level
11891187
let tabLevel = Math.ceil(groupsFound.groups.leadingSpaces !== undefined ? groupsFound.groups.leadingSpaces.length / SPACEASTABS : 0) || (groupsFound.groups.leadingTabs !== undefined ? groupsFound.groups.leadingTabs.length : 0);

packages/lu/test/parser/lufile/parseFileContents.nDepthEntity.test.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -204,18 +204,6 @@ describe('V2 NDepth definitions using @ notation', function () {
204204
.catch(err => done())
205205
});
206206

207-
it('Child entity names must be unique', function (done) {
208-
let luFile = `
209-
@ml xyz
210-
@ml xyz1 =
211-
- @ ml xyz
212-
213-
`;
214-
parseFile.parseFile(luFile)
215-
.then(res => done(res))
216-
.catch(err => done())
217-
});
218-
219207
it('Simple child entity is handled correctly', function (done) {
220208
let luFile = `
221209
@ml xyz1 =

0 commit comments

Comments
 (0)