generated from foxglove/template-typescript
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
defaults for non-optional mutable members (#156)
### Public-Facing Changes <!-- describe any changes to the public interface or APIs, or write "None" --> - non-optional fields for mutable structs and unions now receive default values ### Description Most of this is done in the DeserializationInfoCache since we generally want to cache default values for complex types. Primitive fields receive default values per spec. Default values for fixed size arrays are given Default unions use a default case if one exists, otherwise they use the case selected by the default value of the switch case type. Default structs are filled with non-optional members' default values. Reference: https://www.omg.org/spec/DDS-XTypes/1.3/PDF 7.2.2.4.4.4.7 ![image](https://github.com/foxglove/omgidl/assets/10187776/28be56ff-69f5-4fcd-bbce-d504a3099858) <!-- Link relevant Github issues. Use `Fixes #1234` to auto-close the issue after merging. --> FG-6554
- Loading branch information
Showing
5 changed files
with
454 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.