func metaConsumesSetter(meta *spec.Swagger) func([]string) { return func(consumes []string) { meta.Consumes = consumes } }