Skip to content

Commit

Permalink
Add missing json tag on internal unstructured list
Browse files Browse the repository at this point in the history
  • Loading branch information
liggitt committed Oct 15, 2021
1 parent 55e1d2f commit fd64f8d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ func (unstructuredJSONScheme) Identifier() runtime.Identifier {

func (s unstructuredJSONScheme) decode(data []byte) (runtime.Object, error) {
type detector struct {
Items gojson.RawMessage
Items gojson.RawMessage `json:"items"`
}
var det detector
if err := json.Unmarshal(data, &det); err != nil {
Expand Down Expand Up @@ -425,7 +425,7 @@ func (unstructuredJSONScheme) decodeToUnstructured(data []byte, unstruct *Unstru

func (s unstructuredJSONScheme) decodeToList(data []byte, list *UnstructuredList) error {
type decodeList struct {
Items []gojson.RawMessage
Items []gojson.RawMessage `json:"items"`
}

var dList decodeList
Expand Down

0 comments on commit fd64f8d

Please sign in to comment.