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