openapi-gui icon indicating copy to clipboard operation
openapi-gui copied to clipboard

Schemas and Response Bodies

Open LeviRosol opened this issue 6 years ago • 5 comments

This is either a usability issue or a documentation issue...

Is there no way to leverage a defined Schema as a Request Body? I'm hoping that there is and that I've missed it. If there isn't a way to do this now, it seems like a pretty solid feature to add as it would save a ton of time vs creating new objects in the Schema Editor (uffda, that editor is brutal to use).

btw, I really dig what you're doing here. I've been a swagger user for years, and have always wanted a GUI to create the json vs the other way around.

LeviRosol avatar Feb 01 '19 22:02 LeviRosol

uffda, that editor is brutal to use

It is. I'm on the lookout for a more pleasant alternative.

Let me take a look at the missing functionality and report back.

MikeRalphson avatar Feb 15 '19 11:02 MikeRalphson

As well as the ability to delete a requestBody, there's now the ability to re-use an existing shared schema for a requestBody, the icon is like :recycle:

Would really appreciate your feedback on whether this covers your use-case.

MikeRalphson avatar Feb 15 '19 15:02 MikeRalphson

I haven't had time to test this, but should have time later this week. Sounds like it'll be a winner though!

LeviRosol avatar Feb 18 '19 21:02 LeviRosol

Hey together,

I was/am also looking for this feature - both for the response and request bodies (both are mentioned within this issue).

From a UX perspective, it would make sense to either specify JSON or use a reference. Maybe the UI could be adapted accordingly? Also, while referencing requests bodies is now possible, the dropdown is shown empty and the response bodies are not supported. It looks like it definitely goes into the right direction, but there are some more steps ahead I guess ;)

sibbl avatar Mar 18 '19 14:03 sibbl

Hello, The requestbody in exported file doesnt contain type of schema, properties and type of parameters i am passing. is there any alternate of this ? pls let me know

manmohan-99 avatar Jun 03 '20 07:06 manmohan-99