You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by me...@apache.org on 2020/11/24 03:02:55 UTC

[apisix] branch master updated: fix(consumer): keep the id field for compatibility (#2829)

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

membphis 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 c8823d0  fix(consumer): keep the id field for compatibility (#2829)
c8823d0 is described below

commit c8823d0eedcdc6e329afc48d6f41e7c92637ae28
Author: 罗泽轩 <sp...@gmail.com>
AuthorDate: Tue Nov 24 11:02:44 2020 +0800

    fix(consumer): keep the id field for compatibility (#2829)
---
 apisix/schema_def.lua | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/apisix/schema_def.lua b/apisix/schema_def.lua
index 6f360ed..6d35b70 100644
--- a/apisix/schema_def.lua
+++ b/apisix/schema_def.lua
@@ -559,7 +559,9 @@ _M.consumer = {
         },
         create_time = timestamp_def,
         update_time = timestamp_def,
-        desc = {type = "string", maxLength = 256}
+        desc = {type = "string", maxLength = 256},
+        -- deprecate fields, will be removed soon
+        id = id_schema,
     },
     required = {"username"},
     additionalProperties = false,