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

Swagger Schema mostly empty #82

Open
AndiRudi opened this issue Dec 20, 2020 · 1 comment
Open

Swagger Schema mostly empty #82

AndiRudi opened this issue Dec 20, 2020 · 1 comment

Comments

@AndiRudi
Copy link

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

@oskardudycz
Copy link
Owner

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

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

No branches or pull requests

2 participants