Treat null
as undefined
when generating protobuf messages
#266
Labels
enhancement
New feature or request
null
as undefined
when generating protobuf messages
#266
Can we treat
null
the same asundefined
when creating protobuf message objects? Something like the following diff:I know that based on the typescript types defined for protobuf objects we should not be passing
null
as a value for protobuf fields. However, I am in the process of migrating over to use protobuf-ts and this scenario (values being set to null) does seem to crop up occasionally. For example, when reading data from a database it is possible that many values arenull
and I am currently needing to convert them toundefined
before I can translate the objects into a protobuf response.The text was updated successfully, but these errors were encountered: