usebruno / bruno

Opensource IDE For Exploring and Testing Api's (lightweight alternative to postman/insomnia)
https://www.usebruno.com/
MIT License
27.74k stars 1.28k forks source link

Adjust route formatting when importing from OpenAPI v3 #3372

Closed GeisonJr closed 2 days ago

GeisonJr commented 4 weeks ago

I have checked the following:

Describe the bug

Currently, routes imported from OpenAPI v3 sometimes have a leading slash /, leading to duplicate slashes // when combined with {{baseUrl}}. This requires manual removal of the leading slash in the environment settings. Implementing an automatic check to strip the leading slash from routes during import will prevent this issue and ensure consistent URLs without manual intervention.

.bru file to reproduce the bug

No response

Screenshots/Live demo link

  1. Request Route - Initial route setup: image

  2. Imported Environment - Verifying {{baseUrl}} from the environment file: image

  3. Slash Example - Showing the trailing slash in {{baseUrl}}: image

  4. Final Problem - Resulting in URLs with a duplicate //: image

anusree-bruno commented 2 weeks ago

Hi @GeisonJr!

Thanks for reporting this. We will get this fixed soon.

anusree-bruno commented 2 days ago

This has been fixed in the latest release v1.35.

Closing this issue, feel free to reopen if the issue persists