Commit 6d7d7080 authored by k8s-merge-robot's avatar k8s-merge-robot

Merge pull request #14411 from feihujiang/removeUselessTodoNotes

Auto commit by PR queue bot
parents c2a0a4b9 4a126e72
...@@ -163,7 +163,6 @@ func (s *SwaggerSchema) ValidateBytes(data []byte) error { ...@@ -163,7 +163,6 @@ func (s *SwaggerSchema) ValidateBytes(data []byte) error {
func (s *SwaggerSchema) ValidateObject(obj interface{}, fieldName, typeName string) errs.ValidationErrorList { func (s *SwaggerSchema) ValidateObject(obj interface{}, fieldName, typeName string) errs.ValidationErrorList {
allErrs := errs.ValidationErrorList{} allErrs := errs.ValidationErrorList{}
models := s.api.Models models := s.api.Models
// TODO: handle required fields here too.
model, ok := models.At(typeName) model, ok := models.At(typeName)
if !ok { if !ok {
return append(allErrs, fmt.Errorf("couldn't find type: %s", typeName)) return append(allErrs, fmt.Errorf("couldn't find type: %s", typeName))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment