From 4a126e7297c297543ea4dce485071346ea02a2e7 Mon Sep 17 00:00:00 2001 From: feihujiang Date: Wed, 23 Sep 2015 17:45:22 +0800 Subject: [PATCH] Remove useless todo notes that handle required fields --- pkg/api/validation/schema.go | 1 - 1 file changed, 1 deletion(-) diff --git a/pkg/api/validation/schema.go b/pkg/api/validation/schema.go index 8b1cf674b6b..1c2a5b35c59 100644 --- a/pkg/api/validation/schema.go +++ b/pkg/api/validation/schema.go @@ -97,7 +97,6 @@ func (s *SwaggerSchema) ValidateBytes(data []byte) error { func (s *SwaggerSchema) ValidateObject(obj interface{}, apiVersion, 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))