Skip to content

🐛 fix DefaultValue suppression for nullable reference-type properties#18

Merged
igotinfected merged 1 commit intomainfrom
fix/default-value-issue
Feb 16, 2026
Merged

🐛 fix DefaultValue suppression for nullable reference-type properties#18
igotinfected merged 1 commit intomainfrom
fix/default-value-issue

Conversation

@igotinfected
Copy link
Member

Fixes: #17

Fixes the DefaultValue issue by removing the DefaultValueAttribute from nullable reference-type properties.

Previously, when a nullable reference type had a DefaultValue, that default value would never be emitted since XmlSerializer considers it unchanged.

@igotinfected igotinfected merged commit e296671 into main Feb 16, 2026
2 checks passed
@igotinfected igotinfected deleted the fix/default-value-issue branch February 16, 2026 19:04
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.

Nullable XML elements/attributes with a DefaultValue attribute do not emit their default value

1 participant