Merge pull request #14411 from feihujiang/removeUselessTodoNotes

Auto commit by PR queue bot
pull/6/head
k8s-merge-robot 2015-10-13 15:49:12 -07:00
commit 6d7d7080df
1 changed files with 0 additions and 1 deletions

View File

@ -163,7 +163,6 @@ func (s *SwaggerSchema) ValidateBytes(data []byte) error {
func (s *SwaggerSchema) ValidateObject(obj interface{}, fieldName, typeName string) errs.ValidationErrorList {
allErrs := errs.ValidationErrorList{}
models := s.api.Models
// TODO: handle required fields here too.
model, ok := models.At(typeName)
if !ok {
return append(allErrs, fmt.Errorf("couldn't find type: %s", typeName))