swagger-play
swagger-play copied to clipboard
Model Schema does not display array of strings for request body
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?
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")