swagger-codegen icon indicating copy to clipboard operation
swagger-codegen copied to clipboard

[C#] How to mix DateTime and DateTimeOffset in a model?

Open ncksol opened this issue 9 years ago • 1 comments

Description

My model contains properties of both types DateTime and DateTimeOffset. It is crucial for me to keep it that way. But unfortunately, as far as I understand, Swagger can only either generated all of them as DateTime (default behaviour) or as DateTimeOffset (with flag specified). Is there a way to mix those?

Swagger-codegen version

v2.2.1

ncksol avatar Jun 08 '17 19:06 ncksol

@ncksol I would suggest you to try the latest 2.3.0 to generate C# API client, which has been refactored and let us know if you're still seeing issue.

wing328 avatar Jun 09 '17 07:06 wing328