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

Custom type = nil does not marshals to zero length instead of nil when marshal code is generated #17

Closed
awalterschulze opened this issue Dec 3, 2014 · 1 comment

Comments

@awalterschulze
Copy link
Member

From awalterschulze on June 12, 2014 14:00:23

see TestBugUuid, with marshaler_all = true in thetest.proto

Original issue: http://code.google.com/p/gogoprotobuf/issues/detail?id=17

@awalterschulze
Copy link
Member Author

From awalterschulze on August 07, 2014 07:30:33

There is no way to tell whether a custom type is nullable at generation time.
An extra custom type method would be needed, like IsNil() bool.

I think if you declared your type as nullable=false for something that is nullable you should expect to see some inconsistencies.

Status: Invalid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant