nic-6443 commented on code in PR #12040:
URL: https://github.com/apache/apisix/pull/12040#discussion_r2024276485


##########
apisix/admin/consumers.lua:
##########
@@ -73,14 +70,14 @@ local function check_conf(username, conf, need_username, 
schema)
     end
 
     if conf.plugins then
-        ok, err = plugins.check_schema(conf.plugins, core.schema.TYPE_CONSUMER)
+      local ok, err = check_duplicate_key(conf.username, conf.plugins)

Review Comment:
   why change the order of those checks? I think we should keep checking static 
schema first indeed



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to