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

Modelgenerator: accomodate null reference types #41

Open
anthonyreilly opened this issue Jan 18, 2022 · 0 comments
Open

Modelgenerator: accomodate null reference types #41

anthonyreilly opened this issue Jan 18, 2022 · 0 comments
Assignees

Comments

@anthonyreilly
Copy link
Owner

Model generator can generate properties that will trigger this compiler error:

Models/SfUser.cs(106,17): warning CS8618: Non-nullable property 'Title' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.

add an option to the generator to align with the expected syntax/configs as outlined here: https://docs.microsoft.com/en-us/dotnet/csharp/nullable-references#nullable-contexts

for instance, set strings to nullable like Title?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant