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

Does not restore disabled pragma for types 649 and 8765 #4961

Open
Jeneland opened this issue Aug 15, 2024 · 0 comments
Open

Does not restore disabled pragma for types 649 and 8765 #4961

Jeneland opened this issue Aug 15, 2024 · 0 comments

Comments

@Jeneland
Copy link

When generating the code with Nswag, the following codes are disabled at the beginning but are not restored at the end when all the other codes are restored. Therefore, this needed to be adjusted manually, but it is easy to overlook.

#pragma warning disable 649 // Disable "CS0649 Field is never assigned to, and will always have its default value null"
#pragma warning disable 8765 // Disable "CS8765 Nullability of type of parameter doesn't match overridden member (possibly because of nullability attributes)."

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