code: func (v *SchemaValidation) ValidateBytes(data []byte) error {
  	obj, err := parse(data)
  	if err != nil {
  		return err
  	}
  
  	gvk, errs := getObjectKind(obj)
  	if errs != nil {
  		return utilerrors.NewAggregate(errs)
  	}
  
  	if (gvk == schema.GroupVersionKind{Version: "v1", Kind: "List"}) {
  		return utilerrors.NewAggregate(v.validateList(obj))
  	}
  
  	return utilerrors.NewAggregate(v.validateResource(obj, gvk))
  }
docs: // ValidateBytes will validates the object against using the Resources
  // object.