Skip to content
Discussion options

You must be logged in to vote

Yes, that's the right long-term fix, but it's a change in Bruno itself. The importer already has the conversion in normalizeVariables() (insomnia-to-bruno.js#L36-L43). It just isn't applied to environments: toBrunoEnv copies each value with String(value) (env-utils.js#L15). Moving that helper somewhere shared and running environment values through it would cover {{ _.x }} in environments too.

That code is the same in v4.2.1, and I couldn't find an existing issue or PR for it, so it's worth opening an issue with these two links (or a PR, since the change is small). Until it ships, the find-and-replace on the export file is the workaround.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@Umizhang0910
Comment options

@muhammadmobi
Comment options

Answer selected by Umizhang0910
@Umizhang0910
Comment options

@helloanoop
Comment options

@Umizhang0910
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants