Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve group and attrGroup name collisions #702

Merged
merged 1 commit into from
Sep 5, 2022
Merged

Resolve group and attrGroup name collisions #702

merged 1 commit into from
Sep 5, 2022

Conversation

tefra
Copy link
Owner

@tefra tefra commented Sep 5, 2022

📒 Description

Group elements and attrGroup attributes can have the same name.
The handler that flattens both of them doesn't resolve them by tag which causes the output model to have the wrong fields in the end.

Resolves #701

🔗 What I've Done

  • Add condition in FlattenAttributeGroups to match the attr tag to the source class tag.

💬 Comments

Really tricky case, I have zero cases of this issue in my samples...

🛫 Checklist

@tefra tefra merged commit 1ad1cb4 into master Sep 5, 2022
@sonarqubecloud
Copy link

sonarqubecloud bot commented Sep 5, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@tefra tefra deleted the fix-701 branch September 5, 2022 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Why are certain XML element attributes dropped on parsing?
1 participant