Skip to content

Modelgenerator: accomodate null reference types #41

@anthonyreilly

Description

@anthonyreilly

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?

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions