List<String> consumesList = toList(consumesMediaTypes);
List<String> producesList = toList(producesMediaTypes);
ApiOperation annotation = context.getApiOperationAnnotation();
if (null != annotation && !isBlank(annotation.consumes())) {
consumesList = asList(annotation.consumes());
}
if (handlerMethodHasFileParameter(context, swaggerGlobalSettings)) {
//Swagger spec requires consumes is multipart/form-data for file parameter types
consumesList = Arrays.asList("multipart/form-data");