Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(config): add DefaultModelsExpandDepth set the default expansion depth for models #107

Merged
merged 4 commits into from
Aug 23, 2023

Conversation

zsbahtiar
Copy link
Contributor

Describe the PR
This PR aims to enhance the Swagger UI configuration by providing the ability to hide the model information. Currently, the Swagger UI displays model details, which might not be desirable in certain scenarios.

Relation issue
#106

Additional context

Introduce a new configuration option for Swagger UI to control the visibility of models.
Implement the necessary changes in the API or parameters to enable hiding the model information.
Update documentation to include details about the new configuration option and its usage.

Improved user experience by reducing clutter and focusing on relevant API details.
Increased flexibility in customizing the Swagger UI according to specific project requirements.

Please review the changes and provide any feedback or suggestions. This enhancement will contribute to a more user-friendly and streamlined Swagger UI experience.

@zsbahtiar
Copy link
Contributor Author

hi @ubogdan can you check my PR? 🙏🏻

@codecov
Copy link

codecov bot commented Aug 23, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (bc83795) 100.00% compared to head (8ba12d1) 100.00%.

❗ Current head 8ba12d1 differs from pull request most recent head 45f496a. Consider uploading reports for the commit 45f496a to get more accurate results

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #107   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines           88        92    +4     
=========================================
+ Hits            88        92    +4     
Files Changed Coverage Δ
swagger.go 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ubogdan ubogdan merged commit 7a7a18f into swaggo:master Aug 23, 2023
4 checks passed
@zsbahtiar
Copy link
Contributor Author

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants