Distinguishing between a missing property and one set to null #1015
Unanswered
jamesfcarter
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there any way of distinguishing between a property that has not been set vs has been set to
null
, egvs
I was hoping to use a null string type to achieve this, but as soon as I set the
description
property to benullable: true
it converts it into pointer that is nil in both situations. There seems to be aSkipOptionalPointer
flag that might do what I need, but I don't see any way of setting that. I'm imagining something like this:Is there any way of achieving this?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions