Anon
Anon

Reputation: 13

Swagger 2 springfox @ApiModel subtype not working

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

Answers (1)

Dilip Krishnan
Dilip Krishnan

Reputation: 5487

Support for this feature has been introduced in version 2.3.0 of this library.

Upvotes: 1

Related Questions