Skip to content

Commit ee67580

Browse files
author
Shu Zhang
committed
Call processDataType on all fields.
1 parent a56e9ac commit ee67580

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/swagger-jaxrs/src/main/scala/com/wordnik/swagger/jaxrs/JaxrsApiReader.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ trait JaxrsApiReader extends ClassReader with ClassReaderUtils {
336336
field.getAnnotation(classOf[HeaderParam]) != null || field.getAnnotation(classOf[PathParam]) != null ||
337337
field.getAnnotation(classOf[ApiParam]) != null) {
338338
val param = new MutableParameter
339-
param.dataType = field.getType.getName
339+
param.dataType = processDataType(field.getType, field.getGenericType)
340340
Option (field.getAnnotation(classOf[ApiParam])) match {
341341
case Some(annotation) => toAllowableValues(annotation.allowableValues)
342342
case _ =>

0 commit comments

Comments
 (0)