swaggo / swag

Automatically generate RESTful API documentation with Swagger 2.0 for Go.
MIT License
10.58k stars 1.19k forks source link

Swagger UI support one-click expand model definition (include field comment) #1802

Closed lzw5399 closed 5 months ago

lzw5399 commented 5 months ago

Is your feature request related to a problem? Please describe. When the someone else(usually frontend developer) using the swagger to integrate the server-side API into the frontend project, but the input/output definition model description is too hard to use, because the users should click the definition(include nested model & fields) one by one to show the comment.

image

Describe the solution you'd like

Could we add a one-click expand button to expand them all? To avoid the structural level to high,limit a max size?

Describe alternatives you've considered

Additional context

lzw5399 commented 5 months ago

wrong repo I'll move it to https://github.com/swaggo/gin-swagger