Rename RawJSON to Raw in runtime.Unknown and add ContentType & ContentEncoding.

This commit is contained in:
Wojciech Tyczynski
2016-03-16 09:03:33 +01:00
parent 71a3b91ac1
commit 218d3e5923
15 changed files with 79 additions and 34 deletions

View File

@@ -97,7 +97,7 @@ func SortObjects(decoder runtime.Decoder, objs []runtime.Object, fieldInput stri
switch u := item.(type) {
case *runtime.Unknown:
var err error
if objs[ix], _, err = decoder.Decode(u.RawJSON, nil, nil); err != nil {
if objs[ix], _, err = decoder.Decode(u.Raw, nil, nil); err != nil {
return nil, err
}
}