mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 15:25:57 +00:00
Merge pull request #14411 from feihujiang/removeUselessTodoNotes
Auto commit by PR queue bot
This commit is contained in:
commit
6d7d7080df
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user