-
Notifications
You must be signed in to change notification settings - Fork 9
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
Improve TimeOnly
's example value
#6
Conversation
DateOnlyTimeOnly.AspNet.Swashbuckle/DateOnlyTimeOnly.AspNet.Swashbuckle.csproj
Outdated
Show resolved
Hide resolved
Hi, thanks for the contribution! Could you please clarify the issue? Are you saying that example value doesn't have |
I have not found any information on how exactly the time format is defined. I have only adapted it to the return value. |
Got it. What about https://docs.microsoft.com/en-us/dotnet/api/system.timeonly ?
|
That would fit for example or? |
This reverts commit eda7964.
|
TimeOnly isn’t associated with any particular date, it is best visualized as a circular analog clock that might hang on your wall (albeit a 24-hour clock, not a 12-hour clock).
https://devblogs.microsoft.com/dotnet/date-time-and-time-zone-enhancements-in-net-6/
|
What is a sample value for |
|
I have no doubts regarding |
TimeOnly
's example value
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like TimeSpan
doesn't have a sample value. LGTM then, thanks for the contribution!
Hello thank you for the package. I noticed another small thing with the TimeOnly example - it doesn't contain milliseconds
While server response does:
My suggestion would be as follows, the example time is from this documentation
https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-date-and-time-format-strings#Roundtrip