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

I get empty fields marshalled when switching from older gentool and app-toolkit to newer tooling #106

Open
seizadi opened this issue Sep 9, 2021 · 0 comments

Comments

@seizadi
Copy link

seizadi commented Sep 9, 2021

Here is a sample message as seen from client from old tooling:

{"id":"EC2","aggregation":[104732,107374],"entities":{}}

Versus new tooling:

{"type":"","id":"EC2","aggregation":[69393,59305],"entities":{}}

There are many other fields emitted but just focused on the top level type field as a sample
The autogenerated code have the omit-empty option:

type Entity struct {
....

	Type          string           `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Id            string           `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
....
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant