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
Post a Comment