mirror of
https://github.com/Kong/go-pluginserver.git
synced 2025-09-27 20:42:23 +08:00
fix(config) correctly encode map config
This commit is contained in:

committed by
GitHub

parent
1c780470b5
commit
c1ee697a37
@@ -192,8 +192,8 @@ func getSchemaDict(t reflect.Type) schemaDict {
|
|||||||
}
|
}
|
||||||
return schemaDict{
|
return schemaDict{
|
||||||
"type": "map",
|
"type": "map",
|
||||||
"keys": schemaDict{"type": kType},
|
"keys": kType,
|
||||||
"values": schemaDict{"type": vType},
|
"values": vType,
|
||||||
}
|
}
|
||||||
|
|
||||||
case reflect.Struct:
|
case reflect.Struct:
|
||||||
|
Reference in New Issue
Block a user