Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

[Feature Request] Export as OpenAPI #1778

Closed
ecarter202 opened this issue Nov 13, 2019 · 17 comments
Closed

[Feature Request] Export as OpenAPI #1778

ecarter202 opened this issue Nov 13, 2019 · 17 comments
Labels
E-good-first-issue Experience required: Beginner / New N-help Needs: Help

Comments

@ecarter202
Copy link

Would like to be able to export as OpenAPI. Pretty simple. Thanks.

@welcome
Copy link

welcome bot commented Nov 13, 2019

👋 Thanks for opening your first issue! If you're reporting a 🐞 bug, please make sure
you include steps to reproduce it. If you're requesting a feature 🎁, please provide real
use cases that would benefit. 👪

To help make this a smooth process, please be sure you have first read the
contributing guidelines.

@mtsmachado8
Copy link

It would be great! please consider it, thumbs up!

@gschier gschier added Accepted 👌 E-good-first-issue Experience required: Beginner / New N-help Needs: Help labels Dec 11, 2019
@gschier
Copy link
Contributor

gschier commented Dec 11, 2019

This would be awesome, I agree!

@dingyaguang117
Copy link

really need this feature

@pete001
Copy link

pete001 commented Feb 25, 2020

Yeah this would be epic

@reilg
Copy link

reilg commented Jul 1, 2020

This would be incredibly useful.

@gruberdev
Copy link

gruberdev commented Jul 2, 2020

You can actually do it your own in a fairly easy way (especially if you rely on a CI), whenever you sync your API to a remote Git, it creates a .insomnia folder, where inside it automatically creates an ApiSpec folder, inside there's one .yaml file for each one of your API specs.
The good news is: each .yaml is elaborated in such a consistent way that if you exclude the first 3 lines and the last 5 lines of every .yaml file inside .insomnia/ApiSpec/, you'll obtain an OpenAPI compatible file.

I think a simple JS editor can be done meanwhile, but I rather see that implemented as an actual feature...

@ghostbody
Copy link

That will be awesome while swaggymniav is a decent solution currently.

@sanchitsharma
Copy link

That will be awesome while swaggymniav is a decent solution currently.

I tried swaggymnia but it is not working with Insomnia v4 and the latest insomnia is only allowing to export in Insomnia v4. Any idea how to proceed?

@ghostbody
Copy link

@develohpanda
Copy link
Contributor

develohpanda commented Jul 30, 2020

The good news is: each .yaml is elaborated in such a consistent way that if you exclude the first 3 lines and the last 5 lines of every .yaml file inside .insomnia/ApiSpec/, you'll obtain an OpenAPI compatible file.

While Insomnia currently doesn't generate an OpenAPI spec (and I agree it would be a useful feature), just chiming in that we've recently released inso, a companion CLI through which you can export the spec written in designer into a file (as an alternative to the comment quoted). 😄

inso export spec specName -o output.yaml

@codeasashu
Copy link

I've created a very basic npm package here which may suit the needs. Can someone give it a try. Its an early release and thus not a cli usable package, but it does borrow some of the items from swaggymnia

https://www.npmjs.com/package/insomnia-openapi-converter/

@NickAcPT
Copy link

NickAcPT commented Oct 20, 2020

The fragmentation on this project is a bit worrying and confusing.

With that out of the way, I'm making it clear: I'd love to have this included itself on the Insomnia Core application. Other than the (currently unusable) npm package mentioned above, has there been any progress on this?

@develohpanda
Copy link
Contributor

develohpanda commented Oct 20, 2020

Hi @NickAcPT - there was some confusion with the comments/questions and the original feature request here, so I cleared that in my comment above. However, the original feature request currently does not have an progress.

I believe there are enough plugin APIs available in order to create a plugin for Insomnia Core to be able to achieve this.

@HeathNaylor
Copy link

HeathNaylor commented Mar 16, 2021

Is there any progress on this? I would expect to see OpenAPI as a drop down option when exporting from Insomnia. This would be a huge win over Postman currently. Right now if I want to even get close to generating library code from a non-openapi format (Postman Collection or Insomnia) I have to use something like apimatic.io to transform it, no other tools seem to work.

@develohpanda
Copy link
Contributor

Hi @HeathNaylor, unfortunately no progress yet but it may be possible to create a plugin to use apimatic.io in the meantime 👀

Adding this natively is on the roadmap but not in the immediate future as far as I know.

@codeasashu
Copy link

codeasashu commented Mar 17, 2021

Hi @NickAcPT I am sorry the plugin didn't worked out for you. Let me fix it and get back I've fixed the plugin and added a test for very basic functionality: https://www.npmjs.com/package/insomnia-oas-converter

If you can, please file an issue so I can continue making package better.

@wdawson wdawson closed this as completed Jun 30, 2021
@Kong Kong locked and limited conversation to collaborators Jun 30, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
E-good-first-issue Experience required: Beginner / New N-help Needs: Help
Projects
None yet
Development

No branches or pull requests