func opProducesSetter(op *spec.Operation) func([]string) { return func(produces []string) { op.Produces = produces } }