What does Swagger support do? #7
-
Thanks for this library! I have tried to run the endpoint in Swagger UI and DateOnly type shows up nice like date string. So what exactly Swagger support means? What does it do? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
It should fix this: #2 |
Beta Was this translation helpful? Give feedback.
-
@maxkoshevoi hello, I am not sure, I am only beginning with .NET6 web api. I have created .NET6 web api project with swagger UI included. Then I have installed this package only: DateOnlyTimeOnly.AspNet not the one for swagger support. And when I go to swagger ui, or httpie from command line it shows the date nicely as I expected. ISO string "2022-05-19" So I am not sure, what does swagger support does and do we need it. Thanks |
Beta Was this translation helpful? Give feedback.
-
Swashbuckle support fixes UI when Here's a more complete example: https://stackoverflow.com/questions/69187622/how-can-i-use-dateonly-timeonly-query-parameters-in-asp-net-core-6 |
Beta Was this translation helpful? Give feedback.
Swashbuckle support fixes UI when
DateOnly
orTimeOnly
is a parameter in GET methodSwashbuckle still has an open issue for this, so fix from this package is still needed: domaindrivendev/Swashbuckle.AspNetCore#2319
Here's a more complete example: https://stackoverflow.com/questions/69187622/how-can-i-use-dateonly-timeonly-query-parameters-in-asp-net-core-6