Skip to content

Commit

Permalink
fix(consumer): keep the id field for compatibility (#2829)
Browse files Browse the repository at this point in the history
  • Loading branch information
spacewander authored Nov 24, 2020
1 parent d7593a0 commit c8823d0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apisix/schema_def.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c8823d0

Please sign in to comment.