Validate against OpenAPI schema (if available)

This commit is contained in:
Antoine Pelisse
2017-08-11 09:38:59 -07:00
parent 0ade03bc0f
commit b7b5457050
14 changed files with 37 additions and 18 deletions

View File

@@ -411,7 +411,7 @@ func (f *FakeFactory) ResolveImage(name string) (string, error) {
return name, nil
}
func (f *FakeFactory) Validator(validate bool, cacheDir string) (validation.Schema, error) {
func (f *FakeFactory) Validator(validate bool, openapi bool, cacheDir string) (validation.Schema, error) {
return f.tf.Validator, f.tf.Err
}
@@ -699,7 +699,7 @@ func (f *fakeAPIFactory) AttachablePodForObject(object runtime.Object, timeout t
}
}
func (f *fakeAPIFactory) Validator(validate bool, cacheDir string) (validation.Schema, error) {
func (f *fakeAPIFactory) Validator(validate bool, openapi bool, cacheDir string) (validation.Schema, error) {
return f.tf.Validator, f.tf.Err
}