sourcey / spectacle

Beautiful static documentation generator for OpenAPI/Swagger 2.0
https://sourcey.com/spectacle
Other
1.28k stars 338 forks source link

Display requests and responses schemas under endpoint description #167

Closed gmonz36 closed 5 years ago

gmonz36 commented 5 years ago

Hi, I would like to know if there is a way to display the requests and responses schemas directly under the request body and responses section instead of having to click on a link to the schema definition at the bottom of the page.

yyamano commented 5 years ago

There is no easy way.

I think you need to change app/views/partials/swagger/responses.hbs. Probably somewhere between https://github.com/sourcey/spectacle/blob/master/app/views/partials/swagger/responses.hbs#L32-L35