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

Add support for optional values from protocol XML (and other codegen bug fixes) #9

Merged
merged 4 commits into from
Aug 9, 2023

Conversation

ethanmoffat
Copy link
Owner

  • Adds support for the optional attribute, which was previously ignored
  • Removes a bunch of extra whitespace in generated serialize methods
  • Fixes bug when deserializing to slices with primitive types

Don't attempt to serialize optional values that aren't set.
Don't attempt to deserialize optional values when the reader has no remaining data.
This change impacts field/length elements. Arrays are unaffected.
Fixes panic when attempting to index into a slice while deserializing a primitive type (string or int)
@ethanmoffat ethanmoffat merged commit 1659fe3 into master Aug 9, 2023
1 check passed
@ethanmoffat ethanmoffat deleted the support_optional branch August 9, 2023 04:47
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.

1 participant