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

Allow reuploading openapi.yaml to an existing collection #28

Open
n14s opened this issue Dec 1, 2022 · 2 comments
Open

Allow reuploading openapi.yaml to an existing collection #28

n14s opened this issue Dec 1, 2022 · 2 comments

Comments

@n14s
Copy link
Contributor

n14s commented Dec 1, 2022

In case of changes in the openapi.yaml, I need to delete the collection and create a new one with the new openapi.yaml.
The Edit Panel of the Collection only allows for renaming the Collection.
Let's add a feature to re-upload the openapi.yaml for an existing collection from the edit panel.

@jonrosner
Copy link
Contributor

Very good idea. The only question is how do you handle manual changes that were done to the collection after importing it from an openapi file. An easy solution would be to just overwrite everything but that feels like it can lead to unexpected deletion of properties.

@n14s
Copy link
Contributor Author

n14s commented Dec 4, 2022

Good point, it would be very upsetting to lose all manual entries without a warning.
But it indeed is the easiest solution.
Maybe a warning when trying to upload an updated openapi.yaml could do the trick.

While the retainment of properties is not trivial, it can be a future enhancement, with this easy solution as a basis.

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