Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 0f93826

Browse files
authored
- Add omitempty to TaggedData data field (#396)
1 parent e56bfef commit 0f93826

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tagged_data.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ func (u *TaggedData) UnmarshalJSON(bytes []byte) error {
103103
type jsonTaggedData struct {
104104
Type int `json:"type"`
105105
Tag string `json:"tag,omitempty"`
106-
Data string `json:"data"`
106+
Data string `json:"data,omitempty"`
107107
}
108108

109109
func (j *jsonTaggedData) ToSerializable() (serializer.Serializable, error) {

0 commit comments

Comments
 (0)