Class<?> dataType, Annotation[] annotations) {
String doc = getDescription(findAnnotation(Description.class, annotations));
String _default = getValue(findAnnotation(DefaultValue.class, annotations));
if (dataType.isEnum()) {
return new SwaggerParameter(paramType, paramName, doc, convertToSwaggerType(models, dataType), _default,
getEnumValues(dataType));
}
return new SwaggerParameter(paramType, paramName, doc, convertToSwaggerType(models, dataType), _default);
}