Skip to content

feat: prompt variable supported for bruno api docs - #87

Open
sachin-bruno wants to merge 5 commits into
usebruno:release/v0.4.0from
sachin-bruno:sachin-bruno/prompt-variables
Open

sachin-bruno wants to merge 5 commits into
usebruno:release/v0.4.0from
sachin-bruno:sachin-bruno/prompt-variables

Conversation

@sachin-bruno

@sachin-bruno sachin-bruno commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

Ref: BRU - 3839

Problem
Prompt variables written as {{?Name}} were not supported in the docs playground, so sending a request that used one shipped the raw token in the URL, headers or body instead of asking the reader for a value.

Fix
The playground now scans each request before it goes out, shows the same Input Required dialog the Bruno app shows, and substitutes whatever the reader types into the URL, headers, params, body and auth.

Screenshots
image

@changeset-bot

changeset-bot Bot commented Sep 21, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 0cc57b4

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@sachin-bruno sachin-bruno changed the title feat: prompt variable changes for the bruno api docs feat: prompt variable supported for bruno api docs Sep 21, 2026
@sachin-bruno
sachin-bruno changed the base branch from main to release/v0.4.0 September 21, 2026 16:49
Comment thread packages/bruno-api-docs/src/ui/Modal/Modal.tsx Outdated
Comment thread packages/bruno-api-docs/src/utils/promptVariables.ts Outdated
Comment thread packages/bruno-api-docs/src/utils/pathParams.ts
Comment thread packages/bruno-api-docs/src/runner/utils/variable-interpolator.ts Outdated
Comment thread packages/bruno-api-docs/src/runner/utils/variable-interpolator.ts Outdated
Comment thread packages/bruno-api-docs/src/components/PromptVariablesModal/StyledWrapper.ts Outdated
Comment thread packages/bruno-api-docs/src/runner/index.ts Outdated
Comment thread packages/bruno-api-docs/src/runner/utils/prompt-variables.spec.ts
@sundram-bruno

Copy link
Copy Markdown
Contributor

can you please check the behaviour of nested prompt variables as per parity with app.

Screen.Recording.2026-09-23.at.5.49.22.PM.mov
Screen.Recording.2026-09-23.at.5.51.53.PM.mov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants