diff --git a/pkg/apiserver/resthandler_test.go b/pkg/apiserver/resthandler_test.go index 50477fc89ad99..0a8849f7e2939 100644 --- a/pkg/apiserver/resthandler_test.go +++ b/pkg/apiserver/resthandler_test.go @@ -38,10 +38,12 @@ import ( type testPatchType struct { unversioned.TypeMeta `json:",inline"` - testPatchSubType `json:",inline"` + TestPatchSubType `json:",inline"` } -type testPatchSubType struct { +// We explicitly make it public as private types doesn't +// work correctly with json inlined types. +type TestPatchSubType struct { StringField string `json:"theField"` }