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

Interpolate collection vars in Generate Code #3824

Open
2 tasks done
bhaugeea opened this issue Jan 16, 2025 · 1 comment · May be fixed by #3825
Open
2 tasks done

Interpolate collection vars in Generate Code #3824

bhaugeea opened this issue Jan 16, 2025 · 1 comment · May be fixed by #3825
Assignees
Labels

Comments

@bhaugeea
Copy link

I have checked the following:

  • I use the newest version of bruno.
  • I've searched existing issues and found nothing related to my issue.

Describe the bug

Collection-level variables are not interpolated in Generate Code: the {{var}} is URL-escaped and included as-is.

.bru file to reproduce the bug

bruno.json
{
"version": "1",
"name": "bug",
"type": "collection",
"ignore": [
"node_modules",
".git"
]
}

bug.bru
meta {
name: bug
type: http
seq: 2
}

get {
url: http://localhost/bug/{{var}}
body: none
auth: none
}

collection.bru
vars:pre-request {
var: var-value
}

Screenshots/Live demo link

Image

Image

Image

@ganesh-bruno
Copy link
Collaborator

Hey @bhaugeea,

Thanks for reporting this issue. We're aware of it and are working on it.

Also, thank you for submitting the PR! We're looking into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants