usebruno / bruno

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

OpenAPI spec v3 doesn't load #2824

Open saasa opened 2 months ago

saasa commented 2 months ago

I have checked the following:

Describe the bug

When I click Open API Spec in the left menu and select the yml file (which has been successfully validated as an OpenAPI v3 spec) on my local machine, nothing happens in Bruno. I have Golden Edition with API spec functionality activated.

.bru file to reproduce the bug

No response

Screenshots/Live demo link

image
sanjai0py commented 2 months ago

Hey @saasa, could you please check the console for any error logs? Also, it would be really helpful if you could share a duplicate version of the file with sensitive values redacted causing the issue.

LucasZapico commented 2 weeks ago

Solution (maybe)

I think I figured this out and I'm adding a comment just for others that might be in similar situations.

Challenge

User is not able to see and toggle between open api spec doc easily.

Solution

Collection > Preferences > Golden Edition > check "API Spec"

This will create a new panel in the side nav showing the API specs at the defined location.


issue

Was this ever resolved? I am having the same or similar issue. I'm trying to open haulango.yaml openapi spec and the import just closes after I click the file.

I have gutted the spec to the bare minimum.

openapi: 3.0.2
info:
  title: APT HaulandGo API
  description: Haul and go primary server api
  version: 1.0.0

servers: 
  - url: https://api.haulandgo.com/api/v1
    description: Production endpoint 
  - url : http://127.0.0.1:3330/api/v1
    description: Local Development endpoint

system

linux Ubuntu 24.04 Bruno v1.33.0 (paid) electron : 31.2.1 chrome : 126.0.6478.127 node : 20.15.0 v8 : 12.6.228.21-electron.0

Thoughts

A little frustrating that the paid feature Api spec support doesn't seem to work...not that I mind just supporting a great open source project.

Thank you