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

Fix duplicate tag check #192

Merged
merged 2 commits into from
Sep 13, 2024
Merged

Fix duplicate tag check #192

merged 2 commits into from
Sep 13, 2024

Conversation

happy5214
Copy link
Member

@happy5214 happy5214 commented Sep 13, 2024

This PR fixes the duplicate tag check. There were two issues. First, the subgroup array iterator in ParsedTagGroup was only returning the tags, excluding any groups. Also, only the top-level tags (not groups) were checked. Both were fixed, and the ensuing issue with the unique tag check was also mitigated. The JSON spec tests for duplicate tags were ported to the main JavaScript testcases for verification.

In order to make the sidecar tests pass, tag level validation (duplicate and unique tags) were moved up to string-level validation.

@happy5214 happy5214 added bug Something isn't working tests Issues related to testcases hed 3 HED 3-specific issues hed 2 HED 2-specific issues validation Tag validation issues labels Sep 13, 2024
@happy5214 happy5214 requested a review from VisLab September 13, 2024 06:26
@happy5214 happy5214 self-assigned this Sep 13, 2024
@happy5214 happy5214 added this to the 3.15.5 milestone Sep 13, 2024
@VisLab VisLab merged commit 8a5eb02 into master Sep 13, 2024
7 of 9 checks passed
@happy5214 happy5214 deleted the fix-duplicate-tag-check branch January 21, 2025 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working hed 2 HED 2-specific issues hed 3 HED 3-specific issues tests Issues related to testcases validation Tag validation issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TAG_EXPRESSION_REPEATED tag-expression-repeated-same-level does not detect all repeats
2 participants