GitHub user pjjw opened a pull request:
https://github.com/apache/thrift/pull/380
add go json annotation 'omitempty' on optionals
if a field is optional, we shouldn't need to assert its nullness when
serializing to json. this additionally matches protobuf behavior.
You can merge
[
https://issues.apache.org/jira/browse/THRIFT-2423?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14329955#comment-14329955
]
Andrew de Andrade commented on THRIFT-2423:
---
So maybe this is a naive question,
peter woodman created THRIFT-3006:
-
Summary: Attach 'omitempty' json tag for optional fields in Go
Key: THRIFT-3006
URL: https://issues.apache.org/jira/browse/THRIFT-3006
Project: Thrift
Issu
Github user Jens-G commented on the pull request:
https://github.com/apache/thrift/pull/377#issuecomment-75319740
I don't have a better idea, so yes.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does n