Skip to content

Commit

Permalink
Remove list metadata for parent object
Browse files Browse the repository at this point in the history
  • Loading branch information
vicmarbev authored and itaysk committed Jun 19, 2022
1 parent 8a96812 commit cea744f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 5 additions & 0 deletions cmd/neat.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ func Neat(in string) (string, error) {
continue
}
}
// general neating
draft, err = neatMetadata(draft)
if err != nil {
return draft, fmt.Errorf("error in neatMetadata : %v", err)
}
return draft, nil
}

Expand Down
2 changes: 0 additions & 2 deletions test/fixtures/list1-neat.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,5 @@
],
"kind": "List",
"metadata": {
"resourceVersion": "",
"selfLink": ""
}
}

0 comments on commit cea744f

Please sign in to comment.