mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-29 17:52:32 +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.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