-
Notifications
You must be signed in to change notification settings - Fork 679
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
Swagger ui freeze on nested models. #1398
Comments
hi do you fix this error |
Yes, my issue about [FromForm] annotation. If you have IFormFile in your model and you pass parameter with [FromForm] attribute, swashbuckle generate unnecessary codes in docs.json. I've solved this issue with exclude this endpoints in my docs like below;
Or;
In swagger configuration;
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
My DTOs are very nested. When i try expand post and put endpoints the ui freeze like that;
I've tried multiple solutions like removing nested properties or examples section on model with document and schema filter, installing Swashbuckle.AspNetCore.Newtonsoft package and ignore reference loop handling. Its run normally when i remove the schemas with document filter, but i need schemas in documentation. I've already tried solutions described in anothes issues for this;
Swashbuckle.AspNetCore version : 5.6.3
Swashbuckle.AspNetCore.Newtonsoft version : 5.6.3
.Net Core version : 3.1
Generated JSON documentation file size : 12.0 MB
I included xml file in documentation. Xml file size : 1.3 MB
Thank you in advance for your help.
The text was updated successfully, but these errors were encountered: