Skip to content

Commit

Permalink
do not serialize instance label when not set
Browse files Browse the repository at this point in the history
  • Loading branch information
gertd committed Sep 11, 2024
1 parent 65b633e commit cd6ad69
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require (
github.com/aserto-dev/go-authorizer v0.20.10
github.com/aserto-dev/go-directory v0.31.11
github.com/stretchr/testify v1.9.0
google.golang.org/grpc v1.65.0
google.golang.org/grpc v1.66.1
google.golang.org/protobuf v1.34.2
)

Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ google.golang.org/genproto/googleapis/rpc v0.0.0-20240812133136-8ffd90a71988 h1:
google.golang.org/genproto/googleapis/rpc v0.0.0-20240812133136-8ffd90a71988/go.mod h1:Ue6ibwXGpU+dqIcODieyLOcgj7z8+IcskoNIgZxtrFY=
google.golang.org/grpc v1.65.0 h1:bs/cUb4lp1G5iImFFd3u5ixQzweKizoZJAwBNLR42lc=
google.golang.org/grpc v1.65.0/go.mod h1:WgYC2ypjlB0EiQi6wdKixMqukr6lBc0Vo+oOgjrM5ZQ=
google.golang.org/grpc v1.66.1 h1:hO5qAXR19+/Z44hmvIM4dQFMSYX9XcWsByfoxutBpAM=
google.golang.org/grpc v1.66.1/go.mod h1:s3/l6xSSCURdVfAnL+TqCNMyTDAGN6+lZeVxnZR128Y=
google.golang.org/protobuf v1.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg=
google.golang.org/protobuf v1.34.2/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func (cmd *ConvertCmd) persist(_ context.Context, d *api.DecisionAssertions) err
UseProtoNames: true,
UseEnumNumbers: false,
EmitUnpopulated: false,
EmitDefaultValues: true,
EmitDefaultValues: false,
}.Marshal(d)
if err != nil {
return err
Expand Down

0 comments on commit cd6ad69

Please sign in to comment.