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

feat: add hidden overwrite flag to the openapi upload cmd #1168

Open
wants to merge 1 commit into
base: next
Choose a base branch
from

Conversation

jarrodparkes
Copy link

🚥 Resolves ISSUE_ID

🧰 Changes

If an automated system runs openapi upload on a pre-existing file, then an overwrite prompt is shown. There is no way to skip this prompt which can lock up automated systems.

This PR adds a flag to skip the prompt.

🧬 QA & Testing

Provide as much information as you can on how to test what you've done.

Case 1 - confirm existing behavior

  • Upload a new API spec to readme using openapi upload {spec} --key={key} --slug={slug}
  • Try uploading the API spec again to trigger the overwrite prompt

Case 2 - test new behavior

  • Upload a new API spec to readme using openapi upload {spec} --key={key} --slug={slug}
  • Try uploading the API spec again using openapi upload {spec} --key={key} --slug={slug} --overwrite to skip the overwrite prompt

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.

1 participant