Open farfush opened 7 years ago
Hi All,
Once again, thanks for the great library. Have question. What do you think about adding CLR DateTimeOffset type as string-date-time to swagger primitives mapping? https://github.com/yahehe/Nancy.Swagger/blob/a29dfc2bdedf7b47e577f6d68666f4ae9f43b96b/src/Swagger.ObjectModel/Primitive.cs#L28
DateTimeOffset
string
date-time
For swagger, this type should be treated the same as regular DateTime.
DateTime
Thoughts? If you accept such a change - I will love to send a PR.
Cheers
I don't see anything wrong with it.
(You could also add a SwaggerTypeMapping from DateTimeOffset to DateTime in the meantime)
Sounds good to me!
Hi All,
Once again, thanks for the great library. Have question. What do you think about adding CLR
DateTimeOffset
type asstring
-date-time
to swagger primitives mapping? https://github.com/yahehe/Nancy.Swagger/blob/a29dfc2bdedf7b47e577f6d68666f4ae9f43b96b/src/Swagger.ObjectModel/Primitive.cs#L28For swagger, this type should be treated the same as regular
DateTime
.Thoughts? If you accept such a change - I will love to send a PR.
Cheers