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

Check if an api is publish/unpublish #417

Open
jonassandqvist opened this issue Feb 9, 2024 · 1 comment
Open

Check if an api is publish/unpublish #417

jonassandqvist opened this issue Feb 9, 2024 · 1 comment

Comments

@jonassandqvist
Copy link

Is your feature request related to a problem? Please describe.
In our piplines we want to fail if one tries to update a published api version

Describe the solution you'd like
One solution would be to add the command api:ispublished
swaggerhub api:ispublished OWNER/API_NAME/[VERSION]

Describe alternatives you've considered
Another solution would to add an argument to api:update to fail if the given api version is published
swaggerhub api:update OWNER/API_NAME/[VERSION] --fail-if-published

@CalemRoelofsSB
Copy link
Contributor

Hey @jonassandqvist, thank you for the feature request!
We will take a look at this internally and get back to you here when it's been added.

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

2 participants