OpenAPI v3 import - debugging "factory is not a function" error message #3722
-
DetailsTried to use new OpenAPI v3 importer, but as I tried to load it from file I got a brief I'm guessing this is probably due to the current lack of full OpenAPI v3 support, but I'm not sure how to go about determining which particular part of the OpenAPI v3 document breaks the import. Any suggestions where to start looking for the error cause? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
👋 Thanks for opening your first issue! If you're reporting a 🐞 bug, please make sure To help make this a smooth process, please be sure you have first read the |
Beta Was this translation helpful? Give feedback.
-
It looks like the error would be coming from here: It looks like maybe your import has a type that is not in this map? I will add a better error message there. |
Beta Was this translation helpful? Give feedback.
It looks like the error would be coming from here:
https://github.com/getinsomnia/insomnia/blob/7a549310470fc17851a5358e740dcfae85249d2c/packages/insomnia-importers/src/importers/openapi3.js#L333
It looks like maybe your import has a type that is not in this map?
https://github.com/getinsomnia/insomnia/blob/7a549310470fc17851a5358e740dcfae85249d2c/packages/insomnia-importers/src/importers/openapi3.js#L287-L315
I will add a better error message there.