insomnia icon indicating copy to clipboard operation
insomnia copied to clipboard

Between the 5/17 release and now OpenAPI import no longer creates Base Environment base_url variable

Open krainboltgreene opened this issue 1 year ago • 3 comments

Expected Behavior

When importing OpenAPI 3 document it should create a Base Environment variable called base_url that combines host and api path.

Actual Behavior

It does not do this anymore.

Reproduction Steps

  1. import
  2. open environment
  3. click base environment

Is there an existing issue for this?

Additional Information

It was originally implemented in https://github.com/luizmariz/insomnia/commit/cefcefde4dd6f46cc521cab46a8ef40ffe5078c0

I believe the issue is due to the new organization "feature". Once I joined an organization it worked correctly.

Insomnia Version

latest

What operating system are you using?

macOS

Operating System Version

13.2.1 (22D68)

Installation method

Download

Last Known Working Insomnia version

2023/05/17

krainboltgreene avatar Nov 09 '23 21:11 krainboltgreene

I can confirm the same issue on my macOS, insomnia version 8.5.0

CROdominik avatar Dec 21 '23 14:12 CROdominik

I have not joined an organization in Insomnia and can confirm that Insomnia does not create the baseUrl when importing OpenAPI specs. Insomnia version 9.2.0 on Manjaro Linux

ccadek avatar May 27 '24 07:05 ccadek

I'm getting this with every OpenAPI document I import too. The import just fundamentally does not work.

env-error

First of all the base_url does not exist, and I need to change it to host:

edit-variable

Then none of the parameters work because its looking for env variables instead of path params, etc, so I have to go and add those manually too.

path-param-error

Can somebody confirm if Kong is interested in returning OpenAPI support to Insomnia or is it gone forever?

philsturgeon avatar Jun 04 '24 10:06 philsturgeon