swaggo / gin-swagger

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

Add support for Swagger UI config param defaultModelExpandDepth #279

Open pivaldi opened 10 months ago

pivaldi commented 10 months ago

Describe the PR

Add support for the Swagger UI configutation parameter defaultModelExpandDepth See https://swagger.io/docs/open-source-tools/swagger-ui/usage/configuration/

Relation issue

None

Additional context

Support for the Swagger UI configutation parameter defaultModelsExpandDepth already exists but not for defaultModelExpandDepth (without s)

Favoryoung commented 4 months ago

This feature makes the documentation much more readable. Thank you.