From c8823d0eedcdc6e329afc48d6f41e7c92637ae28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E6=B3=BD=E8=BD=A9?= Date: Tue, 24 Nov 2020 11:02:44 +0800 Subject: [PATCH] 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 6f360ed3..6d35b707 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,