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

Revisit of Deprecated=False issue #1414

Open
testandattack opened this issue Jun 17, 2021 · 0 comments
Open

Revisit of Deprecated=False issue #1414

testandattack opened this issue Jun 17, 2021 · 0 comments

Comments

@testandattack
Copy link

The generated Swagger documentation was changed a while back to remove the "Deprecated": False tag from the generated document by making the value nullable. Unfortunately, my company has a standard for publishing APIs to an APIM that requires the Deprecated tag to appear on every operation regardless of the value.

I have tried to use all kinds of filters, but nothing seems to work. I am hoping that you can add a flag in the SwaggerGen configuration that would allow me to choose whether to show or suppress "Deprecated": False in the final json.

VERSION:

5.6.0

STEPS TO REPRODUCE:

Generate the document with at least one operation that is not marked as Obsolete

EXPECTED RESULT:

"Deprecated": False will show in the generated JSON

ACTUAL RESULT:

The Deprecated tag does not show up

ADDITIONAL DETAILS

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

1 participant