You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by sp...@apache.org on 2021/06/07 03:52:17 UTC

[apisix] branch master updated: chore: change consumer name max length match with route name (#4379)

This is an automated email from the ASF dual-hosted git repository.

spacewander pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git


The following commit(s) were added to refs/heads/master by this push:
     new a2d80b7  chore: change consumer name max length match with route name (#4379)
a2d80b7 is described below

commit a2d80b73ed1d61a9f3e02bf2ddd5c4f2ffc4ddac
Author: Jintao Zhang <ta...@163.com>
AuthorDate: Mon Jun 7 11:52:12 2021 +0800

    chore: change consumer name max length match with route name (#4379)
---
 apisix/schema_def.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apisix/schema_def.lua b/apisix/schema_def.lua
index 88edd1d..9f8aaa2 100644
--- a/apisix/schema_def.lua
+++ b/apisix/schema_def.lua
@@ -620,7 +620,7 @@ _M.consumer = {
     type = "object",
     properties = {
         username = {
-            type = "string", minLength = 1, maxLength = 32,
+            type = "string", minLength = 1, maxLength = rule_name_def.maxLength,
             pattern = [[^[a-zA-Z0-9_]+$]]
         },
         plugins = plugins_schema,