swagger-api / swagger-play

Apache License 2.0
330 stars 181 forks source link

Model Schema does not display array of strings for request body #136

Open divyajana21 opened 7 years ago

divyajana21 commented 7 years ago

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?

duoxoud commented 7 years ago

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")