Fix resthandler_test in Go 1.6

pull/6/head
Wojciech Tyczynski 2016-03-10 13:01:23 +01:00
parent 6773c2b60f
commit 0e73783c68
1 changed files with 4 additions and 2 deletions

View File

@ -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"`
}