-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Change Insomnia variables to path parameters in openapi import #8040
Comments
Colon led parameters would not be interpolated by nunjucks rendering. It uses brackets to identify syntax to evaluate. |
I'm not sure if I'm overlooking something here, but after changing this to this it works: A setting to control the behavior would probably be quite suitable, if some people prefer the old behavior, but in my use case it would be a welcomed change. |
I guess it's possible the question is can you make url and headers editable without causing bugs or side effects. |
Have you got any updates on this? |
Any update here ? Just tried insomnia over postman and actually this seems to be the only thing that I use and is not in insomnia |
Feature Request
With the introduction of path parameters in version 8.6 it would be more fitting to convert path parameters in openapi format to insomnia path parameters with a colon, instead of insomnia variables with double curly brackets.
Current behavior
openapi:
/foo/{bar}
insomnia:
/foo/{{_.$1}}
Wanted behavior
openapi:
/foo/{bar}
insomnia:
/foo/:bar
Affected code
insomnia/packages/insomnia/src/utils/importers/importers/openapi-3.ts
Lines 272 to 278 in 0ddbccf
If my proposal is welcomed, I will open a PR with the requested change myself.
The text was updated successfully, but these errors were encountered: