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

Work directly with or autoimport OpenAPI V3 spec files #1354

Open
joaoportela opened this issue Jan 9, 2024 · 4 comments · May be fixed by #3615
Open

Work directly with or autoimport OpenAPI V3 spec files #1354

joaoportela opened this issue Jan 9, 2024 · 4 comments · May be fixed by #3615

Comments

@joaoportela
Copy link

I can import my openapi.yaml file as a new collection in bruno. But, that's it.

If I generate a new OpenAPI spec file using swagger I have to remove and add the collection again.

  • Am I doing something wrong?
  • If not, are there any plans to use OpenAPI spec files directly? Or maybe have some kind of auto import?
@subiabre
Copy link
Contributor

@sanjai0py @helloanoop This is pretty big, if you ask me, feature currently missing from Bruno.

What is the way to go when working with OpenApi specs that change over time?

@MrAlucardDante
Copy link

IMO Bruno CLI should evolve to give us an option to import/update collections based on an OpenAPI spec.

In Postman, you can import your OpenApi spec, which then generates your collections.
If you update the spec, you can then update the collections.

Our use case is that our CI pipelines generates our OpenApi specs from our code. It would then be useful if the CLI could updates our Bruno collections automatically with the newly generated OpenApi.

@izzqz
Copy link

izzqz commented May 31, 2024

I would like to use something like this:

bru import --collection {collection_path} --spec-file ./openapi.json

Where bruno update exiting collection and keeps envs, scripts, tests etc. But idk how to handle base_url env in this case for example. Maybe bruno should be smart about it, and compare path endings?

@midasvo
Copy link

midasvo commented Jul 8, 2024

I'm currently developing an application based on OpenAPI specs that are still in development as well, I'm really mising the option to update the collection based on the new specs. A start could even be throwing away / regenerating the actual request files but keeping everything else e.g. environment configurations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants