-
Notifications
You must be signed in to change notification settings - Fork 26
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
handle deprecated endpoints #353
handle deprecated endpoints #353
Conversation
@stephen-hoover Wanted to flag this for you, since you might have more context on the original decision here. @salilgupta1 , can you note in the description that this closes #345 ? |
deprecated = operation.get('deprecated', False) | ||
if 'deprecated' in summary.lower() or deprecated: | ||
deprecation_warning = operation.get("x-deprecation-warning", None) | ||
if 'deprecated' in summary.lower(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have to leave this in because there seem to be a handful of endpoints that use this paradigm. We can get rid of this once we remove those endpoints.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Strange that we have endpoints which explicitly do not work but are marked as deprecated. This seems like a reasonable workaround in the meantime.
Thanks for the flag, but I don't recall being involved in any discussions around the initial implementation of this part of the code. |
2ec6839
to
57fdb0b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
deprecated = operation.get('deprecated', False) | ||
if 'deprecated' in summary.lower() or deprecated: | ||
deprecation_warning = operation.get("x-deprecation-warning", None) | ||
if 'deprecated' in summary.lower(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Strange that we have endpoints which explicitly do not work but are marked as deprecated. This seems like a reasonable workaround in the meantime.
One thing to note:
deprecated
andwarning
set, not one or the other.This PR will close #345.