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

how to deprecate api in swagger-php? #1023

Closed
omidxplimbo opened this issue Dec 13, 2021 · 3 comments
Closed

how to deprecate api in swagger-php? #1023

omidxplimbo opened this issue Dec 13, 2021 · 3 comments

Comments

@omidxplimbo
Copy link

hi . i want to do deprecate some api and show in ui swagger . can i do ?

@mroeling
Copy link

According to OpenApi documentation you can set the deprecated flag to true. deprecated: true
https://swagger.io/docs/specification/2-0/paths-and-operations/ --> "Marking as Deprecated"

@DerManoMann
Copy link
Collaborator

Looks like deprecated as property only exists on Schema and subclasses. Not sure if that is enough or even correct...

@DerManoMann
Copy link
Collaborator

Actually, I was wrong. All Operation derived annotations have a deprecated property too, so closing...

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

3 participants