Skip to content
This repository was archived by the owner on Apr 19, 2026. It is now read-only.

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

Open
tomboc wants to merge 2 commits into
cloudendpoints:masterfrom
tomboc:master
Open

Add --x-google-api-name argument to legacy get_swagger_spec command.#190
tomboc wants to merge 2 commits into
cloudendpoints:masterfrom
tomboc:master

Conversation

@tomboc

@tomboc tomboc commented Mar 13, 2019

Copy link
Copy Markdown

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

@inklesspen inklesspen left a comment

Copy link
Copy Markdown
Contributor

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

tomboc commented Mar 15, 2019

Copy link
Copy Markdown
Author

I added the deprecation warning.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

2 participants