Closed xverges closed 9 years ago
Currently only java enums are translated to allowable values, I will add support for javadoc tags that can do the same
Great news! Thanks!
I have now added support for this using the tag @paramsAllowableValues
here is an example:
/* * @paramsAllowableValues p1 A p2 B p1 C * @paramsDefaultValue p1 C / @PUT @Path("/4") public void putEnum(@QueryParam("p1") String p1, @QueryParam("p2") String p2) { // noop }
closing as fixed for 1.0.5 release
http://docs.swagger.io/swagger-core/v1.3.12/apidocs/com/wordnik/swagger/annotations/ApiParam.html#allowableValues%28%29 results in a parameter defined with the
enum
attributethat results in a nice swagger-ui dropdown.
Can something like this be built using javadoc tags?