mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 11:38:02 +00:00
openapi: Fix generated types for duration strings (#20841)
This commit is contained in:
committed by
GitHub
parent
0bd356f6cd
commit
be4979dfbb
@@ -922,8 +922,8 @@ func convertType(t FieldType) schemaType {
|
||||
ret.baseType = "integer"
|
||||
ret.format = "int64"
|
||||
case TypeDurationSecond, TypeSignedDurationSecond:
|
||||
ret.baseType = "integer"
|
||||
ret.format = "seconds"
|
||||
ret.baseType = "string"
|
||||
ret.format = "duration"
|
||||
case TypeBool:
|
||||
ret.baseType = "boolean"
|
||||
case TypeMap:
|
||||
|
||||
Reference in New Issue
Block a user