usebruno / bruno

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

3116: fixed url slash formating from openapi #3121

Open apoorvyadav1111 opened 1 week ago

apoorvyadav1111 commented 1 week ago

Description

This PR fixes the problem of parsing / when importing openApi spec yaml #3116 .

We introduce changes as per specs from open API as base URL not ending with / and rather the path begins with / . Also if the base URL are not provided, then baseUrl is set to /. image image Can find more details here https://swagger.io/docs/specification/api-host-and-base-path/

Result after changes: image

Contribution Checklist:

Note: Keeping the PR small and focused helps make it easier to review and merge. If you have multiple changes you want to make, please consider submitting them as separate pull requests.

Publishing to New Package Managers

Please see here for more information.