Skip to content
Discussion options

You must be logged in to vote

Arrays, structs and enums can have default values (see user guide), and the GDS does auto-populates them (we recently fixed a bug w.r.t. that though, so make sure you're using GDS v4.1.1a1 or higher). I think that's the closest we have to what you're describing. But that's not available for basic types AFAIK.

Optionally serializing something sounds like trouble (although I'm sure it's possible). You could have the GDS form be optional and still serialize a default, but that's somewhat similar to just using a default value.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@thomas-bc
Comment options

Answer selected by keck-in-space
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants