diff --git a/backend/box/api/types.go b/backend/box/api/types.go index f9abadd1d..cdb292837 100644 --- a/backend/box/api/types.go +++ b/backend/box/api/types.go @@ -125,10 +125,21 @@ type FolderItems struct { Offset int `json:"offset"` Limit int `json:"limit"` NextMarker *string `json:"next_marker,omitempty"` - Order []struct { - By string `json:"by"` - Direction string `json:"direction"` - } `json:"order"` + // There is some confusion about how this is actually + // returned. The []struct has worked for many years, but in + // https://github.com/rclone/rclone/issues/8776 box was + // returning it returned not as a list. We don't actually use + // this so comment it out. + // + // Order struct { + // By string `json:"by"` + // Direction string `json:"direction"` + // } `json:"order"` + // + // Order []struct { + // By string `json:"by"` + // Direction string `json:"direction"` + // } `json:"order"` } // Parent defined the ID of the parent directory