swagger-play icon indicating copy to clipboard operation
swagger-play copied to clipboard

Model Schema does not display array of strings for request body

Open divyajana21 opened this issue 8 years ago • 1 comments

We are trying to display the model schema as list of string for request body in swagger UI. But it displays only string @ApiImplicitParams(Array(new ApiImplicitParam( dataType = "List[String]", paramType = "body", name = "Client Identifier", required = true, allowMultiple = false, value = "clientIdentifier")))

Is this definition right or is this a known issue?

divyajana21 avatar Apr 18 '17 14:04 divyajana21

For now I create a abstract classe which extends java.util.List to bypass this pb...not sure if it is appropriate abstract class ListString extends java.util.List[String] ApiImplicitParam(dataType = "models.ListString")

duoxoud avatar Apr 20 '17 13:04 duoxoud