fix(config) correctly encode array config (#20)

This commit is contained in:
longquan0104
2020-06-22 21:16:28 +07:00
committed by GitHub
parent ed5ed2d9e7
commit 1c780470b5

View File

@@ -181,7 +181,7 @@ func getSchemaDict(t reflect.Type) schemaDict {
} }
return schemaDict{ return schemaDict{
"type": "array", "type": "array",
"elements": schemaDict{"type": elemType}, "elements": elemType,
} }
case reflect.Map: case reflect.Map: