swaggo / gin-swagger

gin middleware to automatically generate RESTful API documentation with Swagger 2.0.
MIT License
3.66k stars 266 forks source link

feat: add defaultModelsExpandDepth for SwaggerUIBundle #301

Open lzw5399 opened 2 months ago

lzw5399 commented 2 months ago

Describe the PR add defaultModelsExpandDepth option for SwaggerUIBundle, to support configure the The default expansion depth for the model on the model-example section.

image

refer: https://swagger.io/docs/open-source-tools/swagger-ui/usage/configuration/

Relation issue https://github.com/swaggo/swag/issues/1802

Additional context Add any other context about the problem here.