mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-29 17:52:32 +00:00
Improve error messages (#10843)
- Fix: "bytes" should be less than %!s(int=131072) message - Also add a missing openapi type that was throwing warnings
This commit is contained in:
@@ -575,6 +575,9 @@ func convertType(t FieldType) schemaType {
|
||||
case TypeTime:
|
||||
ret.baseType = "string"
|
||||
ret.format = "date-time"
|
||||
case TypeFloat:
|
||||
ret.baseType = "number"
|
||||
ret.format = "float"
|
||||
default:
|
||||
log.L().Warn("error parsing field type", "type", t)
|
||||
ret.format = "unknown"
|
||||
|
||||
Reference in New Issue
Block a user