Insomnia is unable to import OpenApi 3 with multiple API keys
See original GitHub issueExpected Behavior
we have an OpanApi 3 collection with multiple API keys, as described at the following link under the paragraph “multiple API keys”: https://swagger.io/docs/specification/authentication/api-keys/
When importing this, it is expected that the various endpoints will have both headers (in our case, x-api-key
and x-api-secret
).
Feeding the same OpenApi file to ReDoc, both authentication headers are correctly recognised:
Actual Behavior
only x-api-key
is present in the imported collection, while the header x-api-secret
has to be created manually for each endpoint that is part of the collection.
Reproduction Steps
- create an OpenApi JSON file with multiple keys as explained here https://swagger.io/docs/specification/authentication/api-keys/
- import the file as a new collection in Insomnia
- select one of the endpoints in the imported collection
- open the request headers tab and verify that not all headers have been created
Is there an existing issue for this?
- I have searched the issue tracker for this problem.
Additional Information
No response
Insomnia Version
2021.7.2
What operating system are you using?
macOS
Operating System Version
Reproduced on macOS, Win 10 and Win 11
Installation method
download from Insomnia.rest
Last Known Working Insomnia version
No response
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Import and Export Data | Insomnia Docs
Insomnia supports importing and exporting. Currently, the supported import formats are Insomnia, Postman v2, HAR, OpenAPI, Swagger, WSDL, and cURL.
Read more >Pipedrive API in Postman or Insomnia
Pipedrive + Insomnia Open Insomnia and click on the small arrow next to "Insomnia". From the drop-down menu choose "Import/Export". From the "Import...
Read more >Introduction – WooCommerce REST API Documentation
Pre-generated keys can be used to authenticate use of the REST API endpoints. New keys can be generated either through the WordPress admin...
Read more >Generating and Configuring a Mastercard API Client
CopiedStep-By-Step Guide · CopiedStep 1: Create an API Project · CopiedStep 2: Download an OpenAPI Specification · CopiedStep 3: Generate an API Client...
Read more >API Docs - GitLab Docs
You can also use a partial OpenAPI definition, to test the API ... per page ( per_page=3 ) and we request the second...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi @mastazi the fix I mentioned above is now part of our latest beta release (2022.6.0-beta.1). Feel free to report any other issues you come across!
Amazing, thank yuo @filfreire !