Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deprecated的API没有显示删除线。 #44

Closed
lephix opened this issue Nov 19, 2018 · 4 comments
Closed

deprecated的API没有显示删除线。 #44

lephix opened this issue Nov 19, 2018 · 4 comments

Comments

@lephix
Copy link

lephix commented Nov 19, 2018

可以参考spingfox-swagger-ui的效果。

@xiaoymin
Copy link
Owner

你好,Swagger的deprecated是通过在方法上标注@Deprecated注解还是通过本身Swagger的注解?这个功能我没使用过,不是太清楚

@lephix
Copy link
Author

lephix commented Nov 20, 2018

该功能也是在标准内包含的,swagger的annotation并没有包含这个选项。https://swagger.io/specification/v2

@xiaoymin
Copy link
Owner

该功能也是在标准内包含的,swagger的annotation并没有包含这个选项。https://swagger.io/specification/v2

好的,我刚试了一下,是通过在方法上加@deprecated注解

swagger的效果如下:

你说的应该是这个效果吧?

@xiaoymin
Copy link
Owner

1.8.8版本已支持

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants