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

Omit empty fields when marshalling to xml #8

Merged
merged 1 commit into from
Aug 8, 2023
Merged

Omit empty fields when marshalling to xml #8

merged 1 commit into from
Aug 8, 2023

Conversation

vifraa
Copy link
Owner

@vifraa vifraa commented Aug 8, 2023

Fix to issue #6.

To make this work the fields of the structs needed to be changed to pointers to be able to represent the nil case. If not we would get empty nestled structs, even though we might not have initialised them on our own. This means that this is a breaking change and will result in a new major version when merged.

@vifraa vifraa linked an issue Aug 8, 2023 that may be closed by this pull request
@vifraa vifraa merged commit f21dc21 into main Aug 8, 2023
6 checks passed
@vifraa vifraa deleted the f/omitempty branch August 8, 2023 20:24
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.

Omit empty fields when marshalling
1 participant