Add interface{} to openapi basic types

parent 9590b94f
...@@ -144,6 +144,7 @@ func GetOpenAPITypeFormat(typeName string) (string, string) { ...@@ -144,6 +144,7 @@ func GetOpenAPITypeFormat(typeName string) (string, string) {
"number": {"number", ""}, "number": {"number", ""},
"boolean": {"boolean", ""}, "boolean": {"boolean", ""},
"[]byte": {"string", "byte"}, // base64 encoded characters "[]byte": {"string", "byte"}, // base64 encoded characters
"interface{}": {"object", ""},
} }
mapped, ok := schemaTypeFormatMap[typeName] mapped, ok := schemaTypeFormatMap[typeName]
if !ok { if !ok {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment