Convert time to UTC, add to OpenAPI (#9924)

* Add time type to OpenAPI.
* Fix documentation and convert returned time to UTC.
* changelog++
* Vendor the SDK changes.
This commit is contained in:
Mark Gritter
2020-09-11 13:29:41 -05:00
committed by GitHub
parent 9596cffb8c
commit 534921363a
8 changed files with 33 additions and 4 deletions

View File

@@ -572,6 +572,9 @@ func convertType(t FieldType) schemaType {
case TypeCommaIntSlice:
ret.baseType = "array"
ret.items = "integer"
case TypeTime:
ret.baseType = "string"
ret.format = "date-time"
default:
log.L().Warn("error parsing field type", "type", t)
ret.format = "unknown"