fix(config) correctly encode map config

This commit is contained in:
Melchor Garau Madrigal
2020-06-22 16:20:43 +02:00
committed by GitHub
parent 1c780470b5
commit c1ee697a37

View File

@@ -192,8 +192,8 @@ func getSchemaDict(t reflect.Type) schemaDict {
}
return schemaDict{
"type": "map",
"keys": schemaDict{"type": kType},
"values": schemaDict{"type": vType},
"keys": kType,
"values": vType,
}
case reflect.Struct: