Skip to content

Commit

Permalink
fix(json): Fix typo in json serialization for dataset listing
Browse files Browse the repository at this point in the history
  • Loading branch information
dustmop committed Jul 7, 2020
1 parent b020767 commit 151fcb1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/cmd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ func TestListFormatJson(t *testing.T) {
"path": "/ipfs/QmNX9ZKXtdskpYSQ5spd1qvqB2CPoWfJbdAcWoFndintrF",
"bodySize": 224,
"bodyRows": 8,
"bodyFromat": "csv",
"bodyFormat": "csv",
"numErrors": 1,
"commitTime": "2001-01-01T01:01:01.000000001Z"
}
Expand Down
2 changes: 1 addition & 1 deletion dsref/version_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ type VersionInfo struct {
// Num of rows in the body
BodyRows int `json:"bodyRows,omitempty"`
// Format of the body, such as "csv" or "json"
BodyFormat string `json:"bodyFromat,omitempty"`
BodyFormat string `json:"bodyFormat,omitempty"`
// Number of errors from the structure
NumErrors int `json:"numErrors,omitempty"`
//
Expand Down

0 comments on commit 151fcb1

Please sign in to comment.