microsoft/OpenAPI.NET.CSharpAnnotations

Timespan schema does not match newtonsoft serialization output

codyconfer opened this issue · 0 comments

This tool does a great job representing datetime and datetimeoffset in swagger, but timespan does not match newtonsoft's default output.

Expected result:

"timeSpanProp": "00:00:00"

Actual result:

"timeSpanProp": {
  "ticks": 0,
  "days": 0,
  "hours": 0,
  "milliseconds": 0,
  "minutes": 0,
  "seconds": 0,
  "totalDays": 0,
  "totalHours": 0,
  "totalMilliseconds": 0,
  "totalMinutes": 0,
  "totalSeconds": 0
}