java - How specify an example of type List<String> in Swagger @ApiModelProperty annotation? -


when specify @apimodelproperty, , it's of type list<string>, example not show properly.

all of following show incorrectly:

@apimodelproperty(     value = "decr",      datatype = "list",     //datatype = "java.util.list",     //datatype = "java.util.list<string>",     //datatype = "list<string>",     //datatype = "java.util.arraylist",     //datatype = "array",      example = "somevalue",     //example = "[somevalue]",     //example = "[\"somevalue\"]" ) 

what proper way this?

(using swagger/swagger-ui 2.5.0)


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -