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 -

javascript - How to bind ViewModel Store to View? -

javascript - Solution fails to pass one test with large inputs? -