mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 11:08:10 +00:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user