GoldenEye icon indicating copy to clipboard operation
GoldenEye copied to clipboard

Swagger Schema mostly empty

Open AndiRudi opened this issue 4 years ago • 1 comments

I started the default template and realised that the Swagger UI does not show the Model details of e.g. Post Issue. Reason is probably, that they are defined with Property getters only..

public string Title { get; }

Not sure if there is a good solution but I changed the TargetFramework to net5.0 and then we can use the new init operator which seams to work...

public string Title { get; init; }

Not sure if the project should be limited that hard, though

AndiRudi avatar Dec 20 '20 17:12 AndiRudi

Thanks for letting me know. I'll verify that 👍

oskardudycz avatar Dec 20 '20 19:12 oskardudycz