-
Notifications
You must be signed in to change notification settings - Fork 9k
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 hangs and become very slow after expanding the end point #6787
Comments
@prataparunsingh please provide the generated swagger definition. |
Please find attached swagger.json file. |
Very large one! Nearly 1M lines of json sample that is beeing generated for the GetAddressesResponse. |
Any update on this? I am seeing a similar issue with half the spec size |
For a quick fix, is it possible not to allow the expansions? |
Any progress on this, I am having the same issue, even with much smaller specs. Thanks |
Any progress? I also have the same issue, even with 40 thousand rows of json. Thanks in advance. |
Facing same issue |
On my part, it's not only the expanding that is slow, but writing in the request body section (free text json). |
Hey y'all, in my case, the problem is the swagger ui itself. I tested in Postman and my api works very well even in large JSON response body. This solved my issue maybe it will be useful for you either. |
Same issue here. |
I am also facing this issue on dev. |
This solved the problem for me: |
Still experiencing this issue. Example generator eagerly generates all nested properties w/o depth limitation. Is there any way to override this behaviour? As a workaround I had to switch model rendering to render model by default. This helps with the initial operation expansion.
|
Hi Team,
I have integrated swagger to my API controller. The UI gets hanged once I click to expand any of the endpoint. I some analysis I figured out this is because of the complexity of the Response schema. Please find the class definition below.
public class AddressTypeInformation : IInformationWithKey, IDataTransferObjectBase
{
public AddressTypeInformation();
public AddressTypeInformation(string id, long myId, int? addressTypeNumber, string name, string description, int status, IList personAddresses, IList nodeAddresses, IList companyAddresses, IList bankAddresses);
Once I remove the last four properties (of IList type) from the response class definition, it works fine.
Can you please help me on this. Is there any work around to handle complex schema in swagger.
Thanks,
Arun
The text was updated successfully, but these errors were encountered: