Skip to content

Support for kotlin.Deprecated #414

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

Closed
StevenKuypers opened this issue Feb 11, 2020 · 1 comment
Closed

Support for kotlin.Deprecated #414

StevenKuypers opened this issue Feb 11, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@StevenKuypers
Copy link

Hi,
This is about using OpenApi in a Kotlin project.

When an endpoint is marked with java.lang.Deprecated, then SpringDoc shows it as deprecated in the GUI (as expected). For Kotlin projects, it would be good to have the same support for when the annotation kotlin.Deprecated is used. It is possible to add "deprecated = true" to @operation to see the strike-through on the swagger page, but then we still miss the message, level and ReplaceWith of the kotlin.Deprecated annotation.

@joaodias14
Copy link
Contributor

Thanks @bnasslahsen !

@bnasslahsen bnasslahsen added the enhancement New feature or request label Jan 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants