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

Add --x-google-api-name argument to legacy get_swagger_spec command. #190

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tomboc
Copy link
Collaborator

@tomboc tomboc commented Mar 13, 2019

Without the option, the command fails to read parsed arguments.

Fixes #189

Without the option, the command fails to read parsed arguments.

Fixes cloudendpoints#189
@inklesspen inklesspen self-assigned this Mar 13, 2019
Copy link
Contributor

@inklesspen inklesspen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

get_swagger_spec ought to be deprecated, though; there should be no need for people to call it instead of get_openapi_spec. Can you change the function for get_swagger_spec to a wrapper that prints a deprecation warning and then calls the underlying _GenOpenApiSpecCallback?

All users should invoke get_openapi_spec instead.
@tomboc
Copy link
Collaborator Author

tomboc commented Mar 15, 2019

I added the deprecation warning.

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

Successfully merging this pull request may close these issues.

2 participants