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

NSWag stops service from starting in .NET 9 #5065

Open
arisewanggithub opened this issue Dec 10, 2024 · 0 comments
Open

NSWag stops service from starting in .NET 9 #5065

arisewanggithub opened this issue Dec 10, 2024 · 0 comments

Comments

@arisewanggithub
Copy link

Describe the bug
With .NET 9, NSwag throws NullReferenceException in ShouldSerializeXXX methods in data model in service start. I opened a bug with asp.net core. And they said it should be a NSwag issue.
Here is the asp.net issue link: dotnet/aspnetcore#59402

A clear and concise description of what the bug is.
ShouldSerializeXXX methods in data model throws NullReferenceException on service startup in .NET 9

Version used
14.2.0

With which version did you encounter this behavior.

To Reproduce
checkout the sample code at: https://github.com/arisewanggithub/dotnetissue59402

Ideally code samples or event unit test.

Expected behavior
The same code (which works in .NET 8) should continue to work in .NET 9.

A clear and concise description of what you expected to happen.

Additional context

Add any other context about the problem here.

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

No branches or pull requests

1 participant