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

Bug/Do not replace caller-supplied VRs with UN for unknown Tags #194

Merged

Conversation

bpeake-illuscio
Copy link
Contributor

@bpeake-illuscio bpeake-illuscio commented Mar 24, 2021

Hello!

This PR closes #193 .

This PR changes the behavior of the writer to default to any existing VR value when we do not have any information on the tag, effectively trusting that the caller knows more than we do about this element. I've added a couple tests to verify this is working as intended, and I've also refactored the logic a bit in verifyVROrDefault and added some code comments explaining the intent of certain logic paths.

Copy link
Owner

@suyashkumar suyashkumar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @bpeake-illuscio, I think this makes sense! Generally LGTM, but had one question.

Also apologies for the delay--I should be more active this month (had several things going on before).

write.go Outdated Show resolved Hide resolved
@suyashkumar suyashkumar self-assigned this Jun 23, 2021
@suyashkumar suyashkumar merged commit 21611a1 into suyashkumar:main Jun 25, 2021
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.

Bug: Write() replaces all VRs for unknown tags with 'UN'
3 participants