Add interface{} to openapi basic types

This commit is contained in:
Clayton Coleman 2017-02-18 21:10:25 -05:00
parent 9590b94f7c
commit 2413fe15ee
No known key found for this signature in database
GPG Key ID: 3D16906B4F1C5CB3

View File

@ -144,6 +144,7 @@ func GetOpenAPITypeFormat(typeName string) (string, string) {
"number": {"number", ""},
"boolean": {"boolean", ""},
"[]byte": {"string", "byte"}, // base64 encoded characters
"interface{}": {"object", ""},
}
mapped, ok := schemaTypeFormatMap[typeName]
if !ok {