swagger-core icon indicating copy to clipboard operation
swagger-core copied to clipboard

Will swagger-core support kotlin class?

Open runjia1987 opened this issue 9 years ago • 2 comments

This is an expected feature, not a issue ^_^ I expect swagger annotations(typically @ApiModel, @ApiModelProperty) could be used with kotlin class, currently these annotations are not compatible with kotlin class, many properties could not be recognized. I'm wondering if there is any plan for this?

runjia1987 avatar Jul 17 '17 04:07 runjia1987

It's hard to say without more details. I suggest looking at the 3.0.0-rc2 branch and reporting what doesn't work

fehguy avatar Jul 17 '17 04:07 fehguy

Hi, thanks for reply. It is my mistake, I defined both @ApiModel(value = "xxx"), where xxx is identical in both classes. after modifying the value, the swagger output is fine. you may close this issue.

runjia1987 avatar Jul 17 '17 05:07 runjia1987