ShiningRush commented on a change in pull request #2331:
URL: https://github.com/apache/apisix/pull/2331#discussion_r495721306
##########
File path: apisix/admin/plugins.lua
##########
@@ -29,10 +30,16 @@ local table_insert = table.insert
local _M = {}
-function _M.check_schema(plugins_conf)
+function _M.check_schema(plugins_conf, schema_type)
for name, plugin_conf in pairs(plugins_conf) do
core.log.info("check plugin scheme, name: ", name, ", configurations:
",
core.json.delay_encode(plugin_conf, true))
+ if type(plugin_conf) ~= "table" then
Review comment:
No test case cover this logic.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]