Skip to content

Commit

Permalink
Force Type implementors to implement MarshalJSON
Browse files Browse the repository at this point in the history
  • Loading branch information
ron-gal committed Aug 15, 2024
1 parent d9a64f6 commit 95736c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bigtable/type.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import (
// for more details on types.
type Type interface {
proto() *btapb.Type
MarshalJSON() ([]byte, error)
}

var marshalOptions = protojson.MarshalOptions{AllowPartial: true, UseEnumNumbers: true}
Expand Down

0 comments on commit 95736c6

Please sign in to comment.