func PruneDefaults(definitions spec.Definitions) spec.Definitions {
	definitionsCloned := false
	for k, v := range definitions {
		if s := PruneDefaultsSchema(&v); s != &v {
			if !definitionsCloned {
				definitionsCloned = true
				orig := definitions
				definitions = make(spec.Definitions, len(orig))
				for k2, v2 := range orig {
					definitions[k2] = v2
				}
			}
			definitions[k] = *s
		}
	}
	return definitions
}
PruneDefaults remove all the defaults recursively from all the
schemas in the definitions, and does not modify the definitions in
place.
package handler
import "k8s.io/kube-openapi/pkg/validation/spec"