mirror of https://github.com/k3s-io/k3s
commit
83c729d12f
|
@ -98,6 +98,10 @@ func (s *SwaggerSchema) ValidateObject(obj interface{}, apiVersion, fieldName, t
|
||||||
glog.V(2).Infof("couldn't find properties for %s, skipping", key)
|
glog.V(2).Infof("couldn't find properties for %s, skipping", key)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
if details.Type == nil {
|
||||||
|
glog.V(2).Infof("nil details for %s, skipping", key)
|
||||||
|
continue
|
||||||
|
}
|
||||||
fieldType := *details.Type
|
fieldType := *details.Type
|
||||||
if value == nil {
|
if value == nil {
|
||||||
glog.V(2).Infof("Skipping nil field: %s", key)
|
glog.V(2).Infof("Skipping nil field: %s", key)
|
||||||
|
|
Loading…
Reference in New Issue