Kong / Kong/insomnia

No longer possible to import a swagger file as a request collection

Open
#5,953 14 comments 12 reactions 0 assignees View on GitHub
B-bug S-unverified
Dominant language
TypeScript
Stars
40k
Forks
2.4k
Avg merge
2d 13h
Merged PRs (30d)
61

Description

### Expected Behavior

In previous versions of Insomnia, the import button would read the file and then ask to import it as a collection or design document.

### Actual Behavior

In recent version the possibility has disappeared. We are obliged to import as a design document, which is very slow and gives un-necessary data.

### Reproduction Steps

1. from the home page go to create / import
2. open your file and click scan
3. the number of request and environments is shown
4. There is then only an import button, no question asked for collection or document

### Is there an existing issue for this?

- [X] I have searched the [issue tracker](https://www.github.com/Kong/insomnia/issues) for this problem.

### Additional Information

The partial workaround is to create first an empty collection and then to import the swagger, but it results in no environment being created.

Either way, there has been a reduction in productivity in the latest version of Insomnia.

### Insomnia Version

2023.2.0

### What operating system are you using?

Windows

### Operating System Version

win 10

### Installation method

from the web page

### Last Known Working Insomnia version

_No response_

Contributor guide

Open the contributing guide

Research direction

Reproduce the import flow from the home page using a Swagger/OpenAPI file, following the listed Windows steps, and compare the scan results with the expected behavior. Trace the import entry point to identify where the collection-versus-design-document choice should appear; done means the choice is restored and collection imports retain the expected requests and environments.

Written by the indexing model from the issue text.

Assessment

Tech stack
openapi, typescript
Domain
api, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.