Skip to content

Interactive HTML Docs incorrectly mark Path Parameters as Query Parameters #7587

@bradb423

Description

@bradb423

I have checked the following:

  • I have searched existing issues and found nothing related to my issue.

This bug is:

  • making Bruno unusable for me
  • slowing me down but I'm able to continue working
  • annoying
  • this feature was working in a previous version but is broken in the current release.

Bruno version

3.2.0

Operating System

Windows 11 and Debian 12 (Same Bruno version on both operating systems)

Describe the bug

When I click the Generate Docs option for my collection, the HTML page marks the Path Parameters as Query Parameters.

In screenshot_1.png I am in the Bruno UI. I have a simple endpoint with a Path Parameter username with value Billy, and as you can see on the right hand side, I get the response {"message": "Hello Billy!"}

screenshot_2.png is the result of clicking Generate Docs for the collection and opening them, you can see that the Path Parameters are now listed as Query Parameters, and the code snippet on the right is now doesn't interpolate the Path Parameter correctly (it should end with /Billy rather than /:username)

screenshot_3.png shows the interactive section of the HTML page, here I made a call, where the Path Parameter is ignored, and I receive a response from the api of `{"message": "Hello :username!"}

I checked the existing issues, and I saw some issues about parsing colons, but I wasn't sure if this issue is linked. Any help would be great :)

.bru file to reproduce the bug

I don't have a .bru file, but I have the YML files instead

Greeting.yml

opencollection.yml

Screenshots/Live demo link

screenshot_1.png: Image

screenshot_2.png: Image

screenshot_3.png: Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions