OpenAPI.NET.CSharpAnnotations icon indicating copy to clipboard operation
OpenAPI.NET.CSharpAnnotations copied to clipboard

Timespan schema does not match newtonsoft serialization output

Open codyconfer opened this issue 5 years ago • 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
}

codyconfer avatar Sep 03 '19 16:09 codyconfer