Open PFYasu opened 6 days ago
Annotate the property (as I assume it's for use server-side, not for clients in your contract) with the [JsonIgnore]
attribute so that you aren't trying to represent a System.Type
in your schema (because that's never going to work).
I'm reasonably confident this is an issue with your code (trying to put things that shouldn't be in the OpenAPI document into the OpenAPI document) and not a bug in either Swashbuckle nor swagger-ui.
Describe the bug
Hello,
Below is my endpoint signature:
And this is the
MyType
class:For this configuration I've got an infinity loop in
SwaggerGenerator
class.Note in the class ctor I cannot read
ApiDescriptionGroups
fromApiDescriptionProvider
.If I change my affected class a bit as shown below:
everything works fine
Expected behavior
Swagger should load the page with endpoint descriptions.
Actual behavior
It is spinning and consuming RAM
Steps to reproduce
No response
Exception(s) (if any)
No response
Swashbuckle.AspNetCore version
6.6.2
.NET Version
.NET 8.0
Anything else?
No response