mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-27 16:07:42 +08:00
Merge pull request #2591 from ipfs/fix/null-object-links
add omitempty to Object struct tags
This commit is contained in:
@ -37,8 +37,8 @@ type Link struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type Object struct {
|
type Object struct {
|
||||||
Hash string
|
Hash string `json:"Hash,omitempty"`
|
||||||
Links []Link
|
Links []Link `json:"Links,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
var ObjectCmd = &cmds.Command{
|
var ObjectCmd = &cmds.Command{
|
||||||
|
Reference in New Issue
Block a user