RicoSuter/NSwag

NRT not generating nullable return types

MoeHamdan opened this issue · 0 comments

When NRT is used, the return type of action method is not being generated as nullable, though the type in the Controller is nullable. So for example if you have a Controller with the following
public Task<Employee?> GetById(int employeeId)

the generated code will be:
System.Threading.Tasks.Task<Employee> GetByIdAsync(int employeeId);