Remove useless todo notes that handle required fields

pull/6/head
feihujiang 2015-09-23 17:45:22 +08:00
parent 45a8b5f98a
commit 4a126e7297
1 changed files with 0 additions and 1 deletions

View File

@ -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))