Reputation: 13
I am using swagger2 annotations in spring boot.I am using springfox-swagger2 version 2.2.2 .
The "example" property in @ApiModelProperty
annotation is not getting recognised.
@ApiModelProperty(name="empName", example="someName")
In swagger.json it is displayed as "empName":"string
" instead of "empName":"someName
".
Also the "subtypes" property in @ApiModel
is not recognised.
Please help!
Upvotes: 1
Views: 3747
Reputation: 5487
Support for this feature has been introduced in version 2.3.0
of this library.
Upvotes: 1