// PruneDefaults remove all the defaults recursively from all the // schemas in the definitions, and does not modify the definitions in // place. func PruneDefaults(definitions spec.Definitions) spec.Definitions { … } // PruneDefaultsSchema remove all the defaults recursively from the // schema in place. func PruneDefaultsSchema(schema *spec.Schema) *spec.Schema { … }