Open kirillkrylov opened 1 week ago
The stack trace suggests this is an issue in ASP.NET Core, rather than Swashbuckle - we're just calling into its API Description layer.
If it is an issue here, then we'll need a minimal reproducible example as a GitHub repository that demonstrates the issue you're experiencing so we can look into this further with the debugger. The example as-given is missing the endpoint method itself, as well as the project configuration (you mention native AoT, for example).
Describe the bug
This line causes the error
however this works as expected
Expected behavior
Not throw
Actual behavior
Throws exeption
Steps to reproduce
No response
Exception(s) (if any)
Swashbuckle.AspNetCore version
6.9.0
.NET Version
8.0.403
Anything else?
issue reproducible in AOT