[GH-ISSUE #4956] [bug]: OpenAPI import shows all response codes as 200 #1875

Closed
opened 2026-03-16 22:12:10 +03:00 by kerem · 2 comments
Owner

Originally created by @cristalp on GitHub (Apr 4, 2025).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4956

Originally assigned to: @nivedin on GitHub.

Is there an existing issue for this?

  • I have searched existing issues and this bug hasn't been reported yet

Current behavior

I import a collection from OpenAPI, which contains the following responses:

        "responses" : {
          "200" : {
            "description" : "Das Bild"
          },
          "400" : {
            "description" : "Die Parameter fehlen oder sind falsch"
          },
          "404" : {
            "description" : "Das Dokument oder dessen Inhalt konnte aufgrund der Dokument-Adresse nicht gefunden werden"
          },
          "500" : {
            "description" : "Das Bild konnte nicht konvertiert werden"
          }
        }

When it's imported, all response codes are shown as 200.

Steps to reproduce

  1. Go to 'Personal Workspace > Collections'
  2. Click on 'Import / Export'
  3. Click on 'Import from OpenAPI' and 'Import from URL'
  4. Choose an URL that contains several responses for an endpoint
  5. Check how they are shown in the collection

Logs and Screenshots

Image

Environment

Production

Hoppscotch Version

Self-hosted

Interceptor

Not Applicable - Issue not related to network requests

Browsers Affected

No response

Operating System

None

Additional Information

No response

Originally created by @cristalp on GitHub (Apr 4, 2025). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4956 Originally assigned to: @nivedin on GitHub. ### Is there an existing issue for this? - [x] I have searched existing issues and this bug hasn't been reported yet ### Current behavior I import a collection from OpenAPI, which contains the following responses: ```json "responses" : { "200" : { "description" : "Das Bild" }, "400" : { "description" : "Die Parameter fehlen oder sind falsch" }, "404" : { "description" : "Das Dokument oder dessen Inhalt konnte aufgrund der Dokument-Adresse nicht gefunden werden" }, "500" : { "description" : "Das Bild konnte nicht konvertiert werden" } } ``` When it's imported, all response codes are shown as 200. ### Steps to reproduce 1. Go to 'Personal Workspace > Collections' 2. Click on 'Import / Export' 3. Click on 'Import from OpenAPI' and 'Import from URL' 4. Choose an URL that contains several responses for an endpoint 5. Check how they are shown in the collection ### Logs and Screenshots ![Image](https://github.com/user-attachments/assets/41a1526d-bd8c-4992-9a5d-1a185df067da) ### Environment Production ### Hoppscotch Version Self-hosted ### Interceptor Not Applicable - Issue not related to network requests ### Browsers Affected _No response_ ### Operating System None ### Additional Information _No response_
kerem 2026-03-16 22:12:10 +03:00
Author
Owner

@jamesgeorge007 commented on GitHub (Apr 11, 2025):

Hi, closing this issue since it is resolved in the latest release. Please feel free to let us know if you have any feedback.

<!-- gh-comment-id:2796096222 --> @jamesgeorge007 commented on GitHub (Apr 11, 2025): Hi, closing this issue since it is resolved in the latest release. Please feel free to let us know if you have any feedback.
Author
Owner

@cristalp commented on GitHub (Apr 11, 2025):

Thanks!

<!-- gh-comment-id:2796115548 --> @cristalp commented on GitHub (Apr 11, 2025): Thanks!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#1875
No description provided.