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

Cannot generate collections from OpenAPI spec #8126

Open
1 task done
verglor opened this issue Oct 24, 2024 · 0 comments
Open
1 task done

Cannot generate collections from OpenAPI spec #8126

verglor opened this issue Oct 24, 2024 · 0 comments
Labels
B-bug Bug: general classification S-unverified Status: Unverified by maintainer

Comments

@verglor
Copy link

verglor commented Oct 24, 2024

Expected Behavior

I should be able to generate collection from imported OpenAPI spec.

Actual Behavior

When I try to genenerate collection I get this error:

image

Error: Error Generating Configuration at Object.Pt [as generateCollectionFromApiSpecAction] (file:///C:/Users/jako/AppData/Local/insomnia/app-10.1.1/resources/app.asar/actions-BZVlCwhF.js:5:2490) at async file:///C:/Users/jako/AppData/Local/insomnia/app-10.1.1/resources/app.asar/mainWindow-CwAvrReO.js:56:5992 at async callLoaderOrAction (file:///C:/Users/jako/AppData/Local/insomnia/app-10.1.1/resources/app.asar/mainWindow-CwAvrReO.js:56:6495) at async Promise.all (index 0) at async defaultDataStrategy (file:///C:/Users/jako/AppData/Local/insomnia/app-10.1.1/resources/app.asar/mainWindow-CwAvrReO.js:56:4881) at async callDataStrategyImpl (file:///C:/Users/jako/AppData/Local/insomnia/app-10.1.1/resources/app.asar/mainWindow-CwAvrReO.js:56:5434) at async en (file:///C:/Users/jako/AppData/Local/insomnia/app-10.1.1/resources/app.asar/mainWindow-CwAvrReO.js:55:34136) at async jr (file:///C:/Users/jako/AppData/Local/insomnia/app-10.1.1/resources/app.asar/mainWindow-CwAvrReO.js:55:29684)

On second try "Generate collection" menu item is disabled:

image

Reproduction Steps

  1. Create empty design document
  2. Download https://api.ibkr.com/gw/api/v3/api-docs
  3. Copy paste OpenAPI spec from downloaded file (since we Cannot import OpenAPI spec from URL #7885)
  4. Click on "Generate collection"
363192280-598a5e47-a1f5-43cb-8cfc-da411cf77f3b

Is there an existing issue for this?

Additional Information

It seems that "Generate collection" is disabled as soon as validation finishes with errors. But this is working spec and it should not block generating collection.

Insomnia Version

10.11.1

What operating system are you using?

Windows

Operating System Version

Windows 10 Pro 22H2 [Version 10.0.19045.5011]

Installation method

winget

Last Known Working Insomnia version

No response

@verglor verglor added B-bug Bug: general classification S-unverified Status: Unverified by maintainer labels Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B-bug Bug: general classification S-unverified Status: Unverified by maintainer
Projects
None yet
Development

No branches or pull requests

1 participant