usebruno / bruno

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

OpenAPI import: Malformed url of imported request #3116

Open mjhcorporate opened 1 month ago

mjhcorporate commented 1 month ago

I have checked the following:

Describe the bug

I have the following, simplified, OpenAPI 3.0 file:

openapi: 3.0.0
info:
  title: Car Rental API
  version: 1.0.0
  description: API for searching and booking rental cars

servers:
  - url: https://localhost:3000

paths:
  /health:
    get:
      summary: Health check endpoint
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    example: "OK"

When I import this in Bruno, the single GET request is created with the following url: https:/localhost:3000//health.

Curiously, sending this request works, albeit with the server complaining about a non-existing endpoint...

.bru file to reproduce the bug

No response

Screenshots/Live demo link

image

apoorvyadav1111 commented 1 month ago

Hi team, I have raised a PR for fixing this. #3121 .

cc: @sanjai0py

Thanks, Apoorv