func opConsumesSetter(op *spec.Operation) func([]string) { return func(consumes []string) { op.Consumes = consumes } }