Merge pull request #2517 from brendandburns/kubecfg

Add client side validation to kubecfg and kubectl.
This commit is contained in:
Clayton Coleman
2014-11-25 13:46:52 -06:00
9 changed files with 130 additions and 19 deletions

View File

@@ -30,12 +30,12 @@ import (
fuzz "github.com/google/gofuzz"
)
func LoadSchemaForTest(file string) (*Schema, error) {
func LoadSchemaForTest(file string) (Schema, error) {
data, err := ioutil.ReadFile(file)
if err != nil {
return nil, err
}
return NewSchemaFromBytes(data)
return NewSwaggerSchemaFromBytes(data)
}
// TODO: this is cloned from serialization_test.go, refactor to somewhere common like util