[GH-ISSUE #2087] [bug]: openapi support for post/put body schemas #691

Closed
opened 2026-03-16 16:42:33 +03:00 by kerem · 12 comments
Owner

Originally created by @christopheblin on GitHub (Jan 25, 2022).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/2087

Originally assigned to: @anwarulislam on GitHub.

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

After importing an openapi doc, I expect to be able to do post/put request easily but except the path nothing is preloaded !

Capture d’écran 2022-01-25 134302

At least, I'd expect to preload the sample like in the basic swaggerui

Steps to reproduce

Import the petstore openapi
Choose addPet operation
Go in the body

=> you should see
Capture d’écran 2022-01-25 134513

Environment

Production

Version

Local

Originally created by @christopheblin on GitHub (Jan 25, 2022). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/2087 Originally assigned to: @anwarulislam on GitHub. ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current behavior After importing an openapi doc, I expect to be able to do post/put request easily but except the path nothing is preloaded ! ![Capture d’écran 2022-01-25 134302](https://user-images.githubusercontent.com/11044877/150979035-23753e92-9b9e-44fa-81e0-2a45784f6552.png) At least, I'd expect to preload the sample like in the basic swaggerui ### Steps to reproduce Import the petstore openapi Choose addPet operation Go in the body => you should see ![Capture d’écran 2022-01-25 134513](https://user-images.githubusercontent.com/11044877/150979341-9011612d-6a3f-4598-bb99-7285483dc7dc.png) ### Environment Production ### Version Local
kerem 2026-03-16 16:42:33 +03:00
  • closed this issue
  • added the
    feature
    label
Author
Owner

@AndrewBastin commented on GitHub (Jan 25, 2022):

This is not a bug, and is just the way the body imports are implemented for OpenAPI specs as of right now. This can be a welcome addition to the OpenAPI importer.

We will add this to the backlog.

Or for anyone interested in picking up this issue, you can refer to this file: https://github.com/hoppscotch/hoppscotch/blob/main/packages/hoppscotch-app/helpers/import-export/import/openapi.ts

<!-- gh-comment-id:1021353114 --> @AndrewBastin commented on GitHub (Jan 25, 2022): This is not a bug, and is just the way the body imports are implemented for OpenAPI specs as of right now. This can be a welcome addition to the OpenAPI importer. We will add this to the backlog. Or for anyone interested in picking up this issue, you can refer to this file: https://github.com/hoppscotch/hoppscotch/blob/main/packages/hoppscotch-app/helpers/import-export/import/openapi.ts
Author
Owner

@jessereynolds commented on GitHub (Aug 18, 2023):

This is not a bug, and is just the way the body imports are implemented for OpenAPI specs as of right now. This can be a welcome addition to the OpenAPI importer.

We will add this to the backlog.

Or for anyone interested in picking up this issue, you can refer to this file: https://github.com/hoppscotch/hoppscotch/blob/main/packages/hoppscotch-app/helpers/import-export/import/openapi.ts

Moved to https://github.com/hoppscotch/hoppscotch/blob/main/packages/hoppscotch-common/src/helpers/import-export/import/openapi.ts

<!-- gh-comment-id:1683355497 --> @jessereynolds commented on GitHub (Aug 18, 2023): > This is not a bug, and is just the way the body imports are implemented for OpenAPI specs as of right now. This can be a welcome addition to the OpenAPI importer. > > We will add this to the backlog. > > Or for anyone interested in picking up this issue, you can refer to this file: https://github.com/hoppscotch/hoppscotch/blob/main/packages/hoppscotch-app/helpers/import-export/import/openapi.ts Moved to https://github.com/hoppscotch/hoppscotch/blob/main/packages/hoppscotch-common/src/helpers/import-export/import/openapi.ts
Author
Owner

@KobePengPower commented on GitHub (Oct 12, 2024):

any new?

<!-- gh-comment-id:2408319560 --> @KobePengPower commented on GitHub (Oct 12, 2024): any new?
Author
Owner

@KobePengPower commented on GitHub (Oct 12, 2024):

any new?

image
<!-- gh-comment-id:2408320067 --> @KobePengPower commented on GitHub (Oct 12, 2024): > any new? <img width="1358" alt="image" src="https://github.com/user-attachments/assets/8b4bc97e-82bd-4af0-aa2f-01a5a69fff86">
Author
Owner

@aaronclong commented on GitHub (Mar 3, 2025):

Is there any plan or roadmap to fix this? This feature is critical and kind of blocks people from migrating from Postman.

<!-- gh-comment-id:2694497516 --> @aaronclong commented on GitHub (Mar 3, 2025): Is there any plan or roadmap to fix this? This feature is critical and kind of blocks people from migrating from Postman.
Author
Owner

@aaronclong commented on GitHub (Mar 5, 2025):

I reviewed the code. It doesn't look like any parsing logic was written here:

github.com/hoppscotch/hoppscotch@35a471f120/packages/hoppscotch-common/src/helpers/import-export/import/openapi.ts (L359-L365)

I tried to get the dev setup but there is not documentation on how to do that. I can't get a local setup of HoppScotch running.
The Developing section just say check the self hosting. However, the documentation there is confusing and not concise: https://docs.hoppscotch.io/documentation/self-host/getting-started

<!-- gh-comment-id:2701046460 --> @aaronclong commented on GitHub (Mar 5, 2025): I reviewed the [code](https://github.com/hoppscotch/hoppscotch/blob/35a471f1208e54433a0c8967d99257e92bc32e5a/packages/hoppscotch-common/src/helpers/import-export/import/openapi.ts#L339-L365). It doesn't look like any parsing logic was written here: https://github.com/hoppscotch/hoppscotch/blob/35a471f1208e54433a0c8967d99257e92bc32e5a/packages/hoppscotch-common/src/helpers/import-export/import/openapi.ts#L359-L365 I tried to get the dev setup but there is not documentation on how to do that. I can't get a local setup of HoppScotch running. The [Developing](https://github.com/hoppscotch/hoppscotch?tab=readme-ov-file#developing) section just say check the self hosting. However, the documentation there is confusing and not concise: https://docs.hoppscotch.io/documentation/self-host/getting-started
Author
Owner

@aaronclong commented on GitHub (Mar 5, 2025):

@RishabhAgarwal-2001 ^

<!-- gh-comment-id:2701067880 --> @aaronclong commented on GitHub (Mar 5, 2025): @RishabhAgarwal-2001 ^
Author
Owner

@gatspy commented on GitHub (Apr 18, 2025):

This might not happen until the earth is destroyed.

<!-- gh-comment-id:2814868555 --> @gatspy commented on GitHub (Apr 18, 2025): This might not happen until the earth is destroyed.
Author
Owner

@MSP-Stev commented on GitHub (Jun 20, 2025):

Hi @jamesgeorge007,

Can you reassign this issue?
Over 3 Years for a basic "feature" is awkward

<!-- gh-comment-id:2990328907 --> @MSP-Stev commented on GitHub (Jun 20, 2025): Hi @jamesgeorge007, Can you reassign this issue? Over 3 Years for a basic "feature" is awkward
Author
Owner

@mashmex commented on GitHub (Jul 30, 2025):

Hi together,

this bug blocks people & companies to work with Hoppscotch. As you cannot use the body-part of OpenAPI collections/imports, this leads to not use the whole software for some of them.

Please consider implementing this.

Thanks

<!-- gh-comment-id:3136308337 --> @mashmex commented on GitHub (Jul 30, 2025): Hi together, this bug blocks people & companies to work with Hoppscotch. As you cannot use the body-part of OpenAPI collections/imports, this leads to not use the whole software for some of them. Please consider implementing this. Thanks
Author
Owner

@jamesgeorge007 commented on GitHub (Aug 4, 2025):

Hello all, this is currently scoped for the upcoming release candidate. We appreciate your feedback and will keep this thread updated as development progresses.

<!-- gh-comment-id:3150044466 --> @jamesgeorge007 commented on GitHub (Aug 4, 2025): Hello all, this is currently scoped for the upcoming release candidate. We appreciate your feedback and will keep this thread updated as development progresses.
Author
Owner

@jamesgeorge007 commented on GitHub (Aug 28, 2025):

Hi, closing this issue since it is implemented in the latest release. Please feel free to reach out if you have any questions.

<!-- gh-comment-id:3233715757 --> @jamesgeorge007 commented on GitHub (Aug 28, 2025): Hi, closing this issue since it is implemented in the latest release. Please feel free to reach out if you have any questions.
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#691
No description provided.