NetCoreForce icon indicating copy to clipboard operation
NetCoreForce copied to clipboard

Modelgenerator: accomodate null reference types

Open anthonyreilly opened this issue 3 years ago • 0 comments

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?

anthonyreilly avatar Jan 18 '22 16:01 anthonyreilly