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:
Jim Kalafut
2021-02-11 19:51:12 -08:00
committed by GitHub
parent c44b60db66
commit e95086ba70
3 changed files with 7 additions and 4 deletions

View File

@@ -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"