Skip to content

Commit d6e7444

Browse files
committed
exclude omitempty for proto fields
1 parent af31978 commit d6e7444

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

internal/apiproto/api.pb.go

+5-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/apiproto/generate_tags.sh

+5
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,8 @@ gomodifytags -file api.pb.go -field Statuses -struct GetUserStatusResult -all -w
2525
gomodifytags -file api.pb.go -field Items -struct DeviceListResult -all -w -remove-options json=omitempty >/dev/null
2626
gomodifytags -file api.pb.go -field Items -struct DeviceTopicListResult -all -w -remove-options json=omitempty >/dev/null
2727
gomodifytags -file api.pb.go -field Items -struct UserTopicListResult -all -w -remove-options json=omitempty >/dev/null
28+
gomodifytags -file api.pb.go -field Allowed -struct RateLimitResult -all -w -remove-options json=omitempty >/dev/null
29+
gomodifytags -file api.pb.go -field AllowedInMs -struct RateLimitResult -all -w -remove-options json=omitempty >/dev/null
30+
gomodifytags -file api.pb.go -field Allowed -struct RateLimitPolicyEvaluation -all -w -remove-options json=omitempty >/dev/null
31+
gomodifytags -file api.pb.go -field TokensLeft -struct RateLimitPolicyEvaluation -all -w -remove-options json=omitempty >/dev/null
32+
gomodifytags -file api.pb.go -field AllowedInMs -struct RateLimitPolicyEvaluation -all -w -remove-options json=omitempty >/dev/null

0 commit comments

Comments
 (0)